-
I'm wondering how to bind I'd tried to add a |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
-
What I did was to set Meow to use different map as the leader map, which seems to be working.
|
Beta Was this translation helpful? Give feedback.
-
It is just a normal keymap : ;; Bind variable to a non-sparse (as in not from `make-sparse-keymap') empty keymap:
(defvar my-leader-map (make-keymap) "My leader map.")
;; Make Meow use the leader key:
(setf meow-keypad-leader-dispatch my-leader-map
(map-elt meow-keymap-alist 'leader) my-leader-map)
;; Bind key sequence to a command in the keymap contained by the variable:
(define-key my-leader-map (kbd "<SPC>") #'execute-extended-command)
If I recall correctly, I originally used In newer Emacs, it looks like you can do (defvar-keymap my-leader-map2
:doc "My leader map, again."
:full t
"<SPC>" #'execute-extended-command
... ) It's probably relevant that I don't have any keybindings with modifiers in them in the first layer of my leader map. |
Beta Was this translation helpful? Give feedback.
It is just a normal keymap :
If I recall correctly, I originally used
make-sparse-keymap
, but that didn't work for some reason.In newer Emacs, it looks like you can do