Skip to content

Commit

Permalink
docs/api: fix keymap in map! examples
Browse files Browse the repository at this point in the history
  • Loading branch information
hlissner committed Aug 6, 2020
1 parent e641717 commit f0ad8cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api.org
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f0ad8cc

Please sign in to comment.