summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2022-11-25 06:52:48 +0000
committerMatthew Lemon <matt@matthewlemon.com>2022-11-25 06:52:48 +0000
commitdbbfbe79ac164f00fee6a3e64e17682ac2867f03 (patch)
treed98835c89394db109d6657a4ee317fd3894b7410
parent2fecc133700f277dd78f7a9200e388dc614acd28 (diff)
added embark and marginalia
-rw-r--r--custom.el2
-rw-r--r--init.el35
2 files changed, 36 insertions, 1 deletions
diff --git a/custom.el b/custom.el
index 7620b98..2fa369f 100644
--- a/custom.el
+++ b/custom.el
@@ -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.
diff --git a/init.el b/init.el
index 4f06ec6..85bb89a 100644
--- a/init.el
+++ b/init.el
@@ -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