Reorganize & rethink help commands
Changes: - Move <help>da to <help>u & <help>du = lookup docs for an autodef - Rebind <help>dC = goto private init file (and jump to doom! block) - Add <help>u & <help>du = lookup docs on an autodef - Add <help>dl = text search on all packages in load-path - Add <help>dL = text search on all load el files New <help>p prefix for package help commands: - <help>dpc = jump to a config block for a package - <help>dpd = goto private packages.el file - <help>dph = open a package's homepage (its repo or on melpa) - <help>dpp = lookup docs on a package (including Doom info; what module(s) install package, where it is configured, etc)
This commit is contained in:
parent
f05f4d2b59
commit
0ac7facea7
2 changed files with 15 additions and 12 deletions
|
@ -26,8 +26,9 @@
|
||||||
(doom-project-find-file doom-private-dir))
|
(doom-project-find-file doom-private-dir))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom/goto-doomblock ()
|
(defun doom/goto-private-init-file ()
|
||||||
"Open your private init.el and go to your `doom!' block."
|
"Open your private init.el file.
|
||||||
|
And jumps to your `doom!' block."
|
||||||
(interactive)
|
(interactive)
|
||||||
(find-file (expand-file-name "init.el" doom-private-dir))
|
(find-file (expand-file-name "init.el" doom-private-dir))
|
||||||
(goto-char
|
(goto-char
|
||||||
|
@ -37,13 +38,13 @@
|
||||||
(point))))
|
(point))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom/goto-config-file ()
|
(defun doom/goto-private-config-file ()
|
||||||
"Open your private config.el file."
|
"Open your private config.el file."
|
||||||
(interactive)
|
(interactive)
|
||||||
(find-file (expand-file-name "config.el" doom-private-dir)))
|
(find-file (expand-file-name "config.el" doom-private-dir)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom/goto-packages-file ()
|
(defun doom/goto-private-packages-file ()
|
||||||
"Open your private packages.el file."
|
"Open your private packages.el file."
|
||||||
(interactive)
|
(interactive)
|
||||||
(find-file (expand-file-name "packages.el" doom-private-dir)))
|
(find-file (expand-file-name "packages.el" doom-private-dir)))
|
||||||
|
|
|
@ -282,6 +282,7 @@
|
||||||
(define-key! help-map
|
(define-key! help-map
|
||||||
;; new keybinds
|
;; new keybinds
|
||||||
"'" #'describe-char
|
"'" #'describe-char
|
||||||
|
"u" #'doom/help-autodefs
|
||||||
"E" #'doom/sandbox
|
"E" #'doom/sandbox
|
||||||
"M" #'doom/describe-active-minor-mode
|
"M" #'doom/describe-active-minor-mode
|
||||||
"O" #'+lookup/online
|
"O" #'+lookup/online
|
||||||
|
@ -317,26 +318,27 @@
|
||||||
|
|
||||||
;; replaces `apropos-documentation' b/c `apropos' covers this
|
;; replaces `apropos-documentation' b/c `apropos' covers this
|
||||||
"d" nil
|
"d" nil
|
||||||
"da" #'doom/help-autodefs
|
|
||||||
"db" #'doom/report-bug
|
"db" #'doom/report-bug
|
||||||
|
"dc" #'doom/goto-private-config-file
|
||||||
|
"dC" #'doom/goto-private-init-file
|
||||||
"dd" #'doom/toggle-debug-mode
|
"dd" #'doom/toggle-debug-mode
|
||||||
"df" #'doom/help-faq
|
"df" #'doom/help-faq
|
||||||
"dh" #'doom/help
|
"dh" #'doom/help
|
||||||
"dk" #'doom/goto-packages-file
|
|
||||||
"dl" #'doom/help-search-load-path
|
"dl" #'doom/help-search-load-path
|
||||||
|
"dL" #'doom/help-search-loaded-files
|
||||||
"dm" #'doom/help-modules
|
"dm" #'doom/help-modules
|
||||||
"dn" #'doom/help-news
|
"dn" #'doom/help-news
|
||||||
"dN" #'doom/help-news-search
|
"dN" #'doom/help-news-search
|
||||||
"di" #'doom/goto-doomblock
|
"dpc" #'doom/help-package-config
|
||||||
"dp" #'doom/help-packages
|
"dpd" #'doom/goto-private-packages-file
|
||||||
"dP" #'doom/help-package-homepage
|
"dph" #'doom/help-package-homepage
|
||||||
"dc" #'doom/goto-config-file
|
"dpp" #'doom/help-packages
|
||||||
"dC" #'doom/help-package-config
|
|
||||||
"ds" #'doom/help-search-headings
|
"ds" #'doom/help-search-headings
|
||||||
"dS" #'doom/help-search
|
"dS" #'doom/help-search
|
||||||
"dx" #'doom/sandbox
|
|
||||||
"dt" #'doom/toggle-profiler
|
"dt" #'doom/toggle-profiler
|
||||||
|
"du" #'doom/help-autodefs
|
||||||
"dv" #'doom/version
|
"dv" #'doom/version
|
||||||
|
"dx" #'doom/sandbox
|
||||||
|
|
||||||
;; replaces `apropos-command'
|
;; replaces `apropos-command'
|
||||||
"a" #'apropos
|
"a" #'apropos
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue