Add 'SPC h d {k,i,c}'
For jumping to init.el, config.el and packages.el
This commit is contained in:
parent
3f759dde23
commit
9936bd9623
2 changed files with 27 additions and 1 deletions
|
@ -22,6 +22,29 @@
|
||||||
(interactive)
|
(interactive)
|
||||||
(doom-project-find-file doom-private-dir))
|
(doom-project-find-file doom-private-dir))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom/goto-doomblock ()
|
||||||
|
"Open your private init.el and go to your `doom!' block."
|
||||||
|
(interactive)
|
||||||
|
(find-file (expand-file-name "init.el" doom-private-dir))
|
||||||
|
(goto-char
|
||||||
|
(or (save-excursion
|
||||||
|
(goto-char (point-min))
|
||||||
|
(search-forward "(doom!" nil t))
|
||||||
|
(point))))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom/goto-config-file ()
|
||||||
|
"Open your private config.el file."
|
||||||
|
(interactive)
|
||||||
|
(find-file (expand-file-name "config.el" doom-private-dir)))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom/goto-packages-file ()
|
||||||
|
"Open your private packages.el file."
|
||||||
|
(interactive)
|
||||||
|
(find-file (expand-file-name "packages.el" doom-private-dir)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom/reload ()
|
(defun doom/reload ()
|
||||||
"Reloads your private config.
|
"Reloads your private config.
|
||||||
|
|
|
@ -314,13 +314,16 @@
|
||||||
"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
|
||||||
"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
|
||||||
"dp" #'doom/help-packages
|
"dp" #'doom/help-packages
|
||||||
"dP" #'doom/help-package-homepage
|
"dP" #'doom/help-package-homepage
|
||||||
"dc" #'doom/help-package-config
|
"dc" #'doom/goto-config-file
|
||||||
|
"dC" #'doom/help-package-config
|
||||||
"ds" #'doom/sandbox
|
"ds" #'doom/sandbox
|
||||||
"dt" #'doom/toggle-profiler
|
"dt" #'doom/toggle-profiler
|
||||||
"dv" #'doom/version
|
"dv" #'doom/version
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue