all repos — nixfiles @ b3789db3412620f0a00f99b5863768320e9e9291

System and user configuration, managed by nix and home-manager

Emacs: set up embark and its consult integration

Alan Pearce
commit

b3789db3412620f0a00f99b5863768320e9e9291

parent

9ca99679f2f9f05c33d6fc03aac725f30d2e416a

2 files changed, 16 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -249,6 +249,20 @@ :config (progn
(setq consult-ripgrep-args "rg --null --line-buffered --color=never --max-columns=1000 --path-separator / --smart-case --no-heading --with-filename --line-number --search-zip --follow"))) +(use-package embark + :general ("C-." #'embark-act + "M-." #'embark-dwim + "C-h B" #'embark-bindings) + :config (progn + (setq embark-prompter #'embark-completing-read-prompter) + (add-to-list 'display-buffer-alist + '("\\`\\*Embark Collect \\(Live\\|Completions\\)\\*" + nil + (window-parameters (mode-line-format . none)))))) + +(use-package embark-consult + :ghook ('consult-preview-at-point-mode-hook #'embark-collect-mode)) + (use-package smerge-mode :after magit :config
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -116,6 +116,8 @@ editorconfig
eglot eldoc-box emacs-gc-stats + embark + embark-consult esh-buf-stack esh-help eshell-fringe-status