summary refs log tree commit diff
diff options
context:
space:
mode:
authornoa2024-11-11 12:06:47 +0800
committernoa2024-11-11 12:06:47 +0800
commitcc5c3c40be21e6941ecd4039de46d881f4bfc7f0 (patch)
treeda2091b3cb363d5f25344148cc2fe91a9e6d64ce
parent9bd1e2f5423bea34aead65911a3d88175a290319 (diff)
Experiment with embark
-rw-r--r--emacs/init.el18
1 files changed, 17 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el
index f2061de..0496a0e 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -832,8 +832,24 @@ The misspelled word is taken from OVERLAY.  WORD is the corrected word."
   :ensure t
   :defer t)
 
-;; (profiler-stop)
+;; Experiment with embark
+(use-package embark
+  :ensure t
+
+  :bind
+  (("C-<return>" . embark-act)
+   ("M-<return>" . 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))
 
+(use-package embark-consult
+  :disabled t
+  :ensure t
+  :hook
+  (embark-collect-mode . consult-preview-at-point-mode))
 
 (use-package which-key
   :ensure t