From b3789db3412620f0a00f99b5863768320e9e9291 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 24 Jun 2023 19:40:33 +0200 Subject: Emacs: set up embark and its consult integration --- user/emacs/init.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'user/emacs') diff --git a/user/emacs/init.el b/user/emacs/init.el index e34df4ca..488d3510 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -249,6 +249,20 @@ With two prefix arguments, write out the day and month name." (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 -- cgit 1.4.1