docs/api: fix keymap in map! examples
This commit is contained in:
parent
e6417172cb
commit
f0ad8cca25
1 changed files with 2 additions and 2 deletions
|
@ -317,8 +317,8 @@ These are side-by-side comparisons, showing how to bind keys with and without
|
|||
(map! "C-x y" #'do-something)
|
||||
|
||||
;; bind a key on a keymap
|
||||
(define-key emacs-lisp-mode (kbd "C-c p") #'do-something)
|
||||
(map! :map emacs-lisp-mode "C-c p" #'do-something)
|
||||
(define-key emacs-lisp-mode-map (kbd "C-c p") #'do-something)
|
||||
(map! :map emacs-lisp-mode-map "C-c p" #'do-something)
|
||||
|
||||
;; unbind a key defined elsewhere
|
||||
(define-key lua-mode-map (kbd "SPC m b") nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue