Add embark

This commit is contained in:
Dimitri Lozeve 2021-07-28 18:26:50 +02:00
parent 44f0a74d54
commit 2f66c7d213

26
init.el
View file

@ -171,6 +171,32 @@
:init :init
(marginalia-mode +1)) (marginalia-mode +1))
(use-package embark
:straight t
:bind
(("C-;" . embark-act) ;; pick some comfortable binding
("M-;" . embark-dwim)
("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
:straight t
:after (embark consult)
:demand t ; only necessary if you have the hook below
;; if you want to have consult previews as you move around an
;; auto-updating embark collect buffer
:hook
(embark-collect-mode . consult-preview-at-point-mode))
(use-package deadgrep (use-package deadgrep
:straight t :straight t
:bind (("<f5>" . deadgrep))) :bind (("<f5>" . deadgrep)))