Fix major-mode set key prefix documentation

This commit is contained in:
Daniel Nicolai 2020-11-15 17:19:51 +01:00 committed by Maximilian Wolff
parent db82eff6d2
commit feaa63381c
1 changed files with 3 additions and 2 deletions

View File

@ -1115,11 +1115,12 @@ key-discovery tools can use (e.g., which-key).
Example to create binding in major mode:
#+BEGIN_SRC emacs-lisp
(spacemacs/declare-prefix-for-mode 'org-mode "o" "custom")
(spacemacs/declare-prefix-for-mode 'org-mode "mo" "custom")
(spacemacs/set-leader-keys-for-major-mode 'org-mode "oi" 'org-id-get-create)
#+END_SRC
This would add binding as ~, oi~ and ~SPC moi~.
This would add binding as ~, oi~ and ~SPC moi~ (note that the "m" in the prefix
declaration must be include).
There is much more to say about bindings keys, but these are the basics. Keys
can be bound in your =~/.spacemacs= file or in individual layers.