aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorRaul Benencia <raul@thousandeyes.com>2024-02-29 09:18:12 -0800
committerRaul Benencia <raul@thousandeyes.com>2024-02-29 09:18:12 -0800
commit0558cac5e53544983b1a5dfc81f04cf010c09726 (patch)
tree0ffce5f7cfedb90e8b3aecb79a4f7113ff89c7dc /.emacs.d
parent37bfe8f87103637a7ac248e667b3a051c4fe7aab (diff)
emacs: add default embark config
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/rul-lisp/packages/rul-completion.el23
1 files changed, 23 insertions, 0 deletions
diff --git a/.emacs.d/rul-lisp/packages/rul-completion.el b/.emacs.d/rul-lisp/packages/rul-completion.el
index 9a5cbc8..2b3afa1 100644
--- a/.emacs.d/rul-lisp/packages/rul-completion.el
+++ b/.emacs.d/rul-lisp/packages/rul-completion.el
@@ -121,5 +121,28 @@
(setq consult-narrow-key "<")
)
+(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
+ (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))
(provide 'rul-completion)
nihil fit ex nihilo