config/default: refactor/reformat help keybinds

Reduce internal usage of map! and improve readability of comments for
help-map binds.
This commit is contained in:
Henrik Lissner 2019-04-04 22:38:46 -04:00
parent 31ca94f5b0
commit 5cdb96888f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -172,37 +172,50 @@
;; Custom help keys -- these aren't under `+bindings' because they ought to be ;; Custom help keys -- these aren't under `+bindings' because they ought to be
;; universal. ;; universal.
(map! :map help-map (define-key! help-map
"'" #'describe-char ;; new keybinds
"a" #'apropos ; replaces `apropos-command' "'" #'describe-char
"A" #'doom/describe-autodefs "A" #'doom/describe-autodefs
"B" #'doom/open-bug-report "B" #'doom/open-bug-report
"C-c" #'describe-coding-system ; replaces `describe-copying' b/c not useful "D" #'doom/open-manual
"d" #'doom/describe-module ; replaces `apropos-documentation' b/c `apropos' covers this "E" #'doom/open-vanilla-sandbox
"D" #'doom/open-manual "M" #'doom/describe-active-minor-mode
"E" #'doom/open-vanilla-sandbox "O" #'+lookup/online
"F" #'describe-face ; replaces `Info-got-emacs-command-node' b/c redundant w/ `Info-goto-node' "T" #'doom/toggle-profiler
"h" #'doom/describe-symbol ; replaces `view-hello-file' b/c annoying "V" #'set-variable
"C-k" #'describe-key-briefly "W" #'+default/man-or-woman
"L" #'global-command-log-mode ; replaces `describe-language-environment' b/c remapped to C-l "C-k" #'describe-key-briefly
"C-l" #'describe-language-environment "C-l" #'describe-language-environment
"M" #'doom/describe-active-minor-mode "C-m" #'info-emacs-manual
"C-m" #'info-emacs-manual "C-v" #'doom/version
"n" #'doom/open-news ; replaces `view-emacs-news' b/c it's on C-n too
"O" #'+lookup/online ;; replacement keybinds
"p" #'doom/describe-package ; replaces `finder-by-keyword' ;; replaces `info-emacs-manual' b/c it's on C-m now
"P" #'find-library ; replaces `describe-package' b/c redundant w/ `doom/describe-package' "r" nil
"r" nil ; replaces `info-emacs-manual' b/c it's on C-m now "rr" #'doom/reload
(:prefix "r" "rt" #'doom/reload-theme
"r" #'doom/reload "rp" #'doom/reload-packages
"t" #'doom/reload-theme "rf" #'doom/reload-font
"p" #'doom/reload-packages "re" #'doom/reload-env
"f" #'doom/reload-font
"e" #'doom/reload-env) ;; replaces `apropos-command'
"T" #'doom/toggle-profiler "a" #'apropos
"V" #'set-variable ;; replaces `describe-copying' b/c not useful
"C-v" #'doom/version "C-c" #'describe-coding-system
"W" #'+default/man-or-woman) ;; replaces `apropos-documentation' b/c `apropos' covers this
"d" #'doom/describe-module
;; replaces `Info-got-emacs-command-node' b/c redundant w/ `Info-goto-node'
"F" #'describe-face
;; replaces `view-hello-file' b/c annoying
"h" #'doom/describe-symbol
;; replaces `describe-language-environment' b/c remapped to C-l
"L" #'global-command-log-mode
;; replaces `view-emacs-news' b/c it's on C-n too
"n" #'doom/open-news
;; replaces `finder-by-keyword'
;; "p" #'doom/describe-package
;; replaces `describe-package' b/c redundant w/ `doom/describe-package'
"P" #'find-library)
(after! which-key (after! which-key
(which-key-add-key-based-replacements doom-leader-key "<leader>") (which-key-add-key-based-replacements doom-leader-key "<leader>")
@ -223,9 +236,9 @@
;; A Doom convention where C-s on popups and interactive searches will invoke ;; A Doom convention where C-s on popups and interactive searches will invoke
;; ivy/helm for their superior filtering. ;; ivy/helm for their superior filtering.
(define-key! :keymaps +default-minibuffer-maps (define-key! :keymaps +default-minibuffer-maps
"C-s" (if (featurep! :completion ivy) "C-s" (if (featurep! :completion ivy)
#'counsel-minibuffer-history #'counsel-minibuffer-history
#'helm-minibuffer-history)) #'helm-minibuffer-history))
;; Smarter C-a/C-e for both Emacs and Evil. C-a will jump to indentation. ;; Smarter C-a/C-e for both Emacs and Evil. C-a will jump to indentation.
;; Pressing it again will send you to the true bol. Same goes for C-e, except ;; Pressing it again will send you to the true bol. Same goes for C-e, except