From feaa63381c0ee94c17857e51ce303243e8bb2e1d Mon Sep 17 00:00:00 2001 From: Daniel Nicolai Date: Sun, 15 Nov 2020 17:19:51 +0100 Subject: [PATCH] Fix major-mode set key prefix documentation --- doc/DOCUMENTATION.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/DOCUMENTATION.org b/doc/DOCUMENTATION.org index 5a19c597f..022369776 100644 --- a/doc/DOCUMENTATION.org +++ b/doc/DOCUMENTATION.org @@ -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.