core-project: rename autoload-project-mode => init-project-mode
To be consistent with other initializing hooks.
This commit is contained in:
parent
d4608c08f8
commit
8da3f56795
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(add-hook 'dired-before-readin-hook #'projectile-track-known-projects-find-file-hook)
|
(add-hook 'dired-before-readin-hook #'projectile-track-known-projects-find-file-hook)
|
||||||
(add-hook 'find-file-hook #'doom|autoload-project-mode)
|
(add-hook 'find-file-hook #'doom|init-project-mode)
|
||||||
(projectile-mode +1)
|
(projectile-mode +1)
|
||||||
|
|
||||||
;; a more generic project root file
|
;; a more generic project root file
|
||||||
|
@ -131,7 +131,7 @@ for .dir-locals.el.")
|
||||||
"Hook run when a project is enabled. The name of the project's mode and its
|
"Hook run when a project is enabled. The name of the project's mode and its
|
||||||
state are passed in.")
|
state are passed in.")
|
||||||
|
|
||||||
(defun doom|autoload-project-mode ()
|
(defun doom|init-project-mode ()
|
||||||
"Auto-enable the project(s) listed in `doom-project'."
|
"Auto-enable the project(s) listed in `doom-project'."
|
||||||
(when doom-project
|
(when doom-project
|
||||||
(if (symbolp doom-project)
|
(if (symbolp doom-project)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue