diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-11-25 06:52:48 +0000 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-11-25 06:52:48 +0000 |
commit | dbbfbe79ac164f00fee6a3e64e17682ac2867f03 (patch) | |
tree | d98835c89394db109d6657a4ee317fd3894b7410 | |
parent | 2fecc133700f277dd78f7a9200e388dc614acd28 (diff) |
added embark and marginalia
-rw-r--r-- | custom.el | 2 | ||||
-rw-r--r-- | init.el | 35 |
2 files changed, 36 insertions, 1 deletions
@@ -9,7 +9,7 @@ '(display-line-numbers-type 'relative t) '(display-time-mode t) '(package-selected-packages - '(markdown-mode eglot helm popup async notmuch ivy calfw-org calfw unicode-fonts deft cider org-roam org yasnippet-snippets which-key vterm use-package rainbow-delimiters pdf-tools paredit magit ledger-mode gruvbox-theme flycheck expand-region evil elpy elfeed-score diminish counsel cmake-mode browse-kill-ring beacon auto-package-update amx ace-window ace-jump-mode)) + '(embark-consult embark marginalia markdown-mode eglot helm popup async notmuch ivy calfw-org calfw unicode-fonts deft cider org-roam org yasnippet-snippets which-key vterm use-package rainbow-delimiters pdf-tools paredit magit ledger-mode gruvbox-theme flycheck expand-region evil elpy elfeed-score diminish counsel cmake-mode browse-kill-ring beacon auto-package-update amx ace-window ace-jump-mode)) '(tool-bar-mode nil)) (custom-set-faces ;; custom-set-faces was added by Custom. @@ -225,6 +225,41 @@ Restart works only on graphic display." ;; PACKAGES +;; embark +(use-package marginalia + :ensure t + :config + (marginalia-mode)) + +(use-package embark + :ensure t + + :bind + (("C-." . embark-act) ;; pick some comfortable binding + ("C-;" . embark-dwim) ;; good alternative: M-. + ("C-h B" . embark-bindings)) ;; alternative for `describe-bindings' + + :init + + ;; Optionally replace the key help with a completing-read interface + (setq prefix-help-command #'embark-prefix-help-command) + + :config + + ;; Hide the mode line of the Embark live/completions buffers + (add-to-list 'display-buffer-alist + '("\\`\\*Embark Collect \\(Live\\|Completions\\)\\*" + nil + (window-parameters (mode-line-format . none))))) + +;; Consult users will also want the embark-consult package. +(use-package embark-consult + :ensure t ; only need to install it, embark loads it after consult if found + :hook + (embark-collect-mode . consult-preview-at-point-mode)) + + +;; markdown (use-package markdown-mode :ensure t :bind (:map markdown-mode-map |