Add Embark
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user