aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2025-02-17 17:18:41 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2025-02-17 17:18:41 +0000
commitaa5b6ad79d468960f2242248b8a3510066af6736 (patch)
tree35e75b9726235ffdb45f4d30a7a2ff17bd705c10
parent4e4238a522b6d067550f1dd7b7c05503cc94c40e (diff)
downloaddotfiles-aa5b6ad79d468960f2242248b8a3510066af6736.tar.gz
dotfiles-aa5b6ad79d468960f2242248b8a3510066af6736.tar.bz2
dotfiles-aa5b6ad79d468960f2242248b8a3510066af6736.zip
Add Embark
-rw-r--r--Emacs/.config/emacs/config.org37
1 files changed, 37 insertions, 0 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index 2015f52..bf0b46f 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -673,6 +673,43 @@ vertico for specific forms.
:config
(vertico-multiform-mode))
#+end_src
+*** Embark
+I'm very late to the party here - mostly because I didn't see much
+point in this. However, after seeing that [[*empv][empv]] had some
+embark bindings for cool behaviours (such as altering playlists) I had
+to try it out - and I was not disappointed.
+
+~embark-act~ is the entry point to using embark, and you can use it
+basically anywhere to great effect. Searching a buffer via
+~consult-line~? ~execute-extended-command~? Looking for files?
+~embark-act~ will pop up a little buffer full of keybindings specific
+to that context that lower the time it takes to get what you want
+done.
+
+A major reason for why this works so well is the actions buffer
+generated by ~embark-act~. You can actually use this buffer
+generation when asking for help after a prefix-key, which I've set
+here. There are also many other little options you can tweak to make
+embark act more like how you wish, which I've barely touch on here.
+#+begin_src emacs-lisp
+(use-package embark
+ :after vertico
+ :straight t
+ :general
+ (:keymaps 'override
+ "M-m" #'embark-act)
+ :init
+ (setq embark-verbose-indicator-display-action
+ '((display-buffer-in-side-window)
+ (side . bottom)
+ (window-height . 0.25)
+ (window-parameters (mode-line-format . none)))
+ embark-prompter 'embark-completing-read-prompter
+ embark-indicators '(embark-highlight-indicator)
+ embark-help-key "?"
+ embark-keymap-prompter-key "#"
+ prefix-help-command #'embark-prefix-help-command))
+#+end_src
*** Consult
Consult provides some improved replacements for certain inbuilt
functions, and a few extensions as well. If we consider ivy/counsel