Add 'SPC h d {k,i,c}'

For jumping to init.el, config.el and packages.el
This commit is contained in:
Henrik Lissner 2019-10-25 18:19:33 -04:00
parent 3f759dde23
commit 9936bd9623
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 27 additions and 1 deletions

View file

@ -22,6 +22,29 @@
(interactive)
(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
(defun doom/reload ()
"Reloads your private config.