Skip to content

Commit

Permalink
Merge pull request doomemacs#2037 from RBckmnn/KeyBindingsHelpCommands
Browse files Browse the repository at this point in the history
config/default: add keybinds to display keymaps
  • Loading branch information
Henrik Lissner authored Dec 1, 2019
2 parents 2326379 + f5310fd commit 12c3618
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions modules/config/default/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,16 @@
"rf" #'doom/reload-font
"re" #'doom/reload-env

;; make `describe-bindings' available under the b prefix which it previously
;; occupied. Add more binding related commands under that prefix as well
"b" nil
"bb" #'describe-bindings
"bi" #'which-key-show-minor-mode-keymap
"bm" #'which-key-show-major-mode
"bt" #'which-key-show-top-level
"bf" #'which-key-show-full-keymap
"bk" #'which-key-show-keymap

;; replaces `apropos-documentation' b/c `apropos' covers this
"d" nil
"d/" #'doom/help-search
Expand Down Expand Up @@ -349,6 +359,9 @@
which-key-replacement-alist)
(cl-pushnew `((,(format "\\`\\(?:<\\(?:\\(?:f1\\|help\\)>\\)\\|C-h\\|%s h\\) r\\'" prefix-re))
nil . "reload")
which-key-replacement-alist)
(cl-pushnew `((,(format "\\`\\(?:<\\(?:\\(?:f1\\|help\\)>\\)\\|C-h\\|%s h\\) b\\'" prefix-re))
nil . "bindings")
which-key-replacement-alist)))


Expand Down

0 comments on commit 12c3618

Please sign in to comment.