core-project: rename autoload-project-mode => init-project-mode

To be consistent with other initializing hooks.
This commit is contained in:
Henrik Lissner
2018-05-20 12:17:19 +02:00
parent d4608c08f8
commit 8da3f56795

View File

@ -13,7 +13,7 @@
projectile-ignored-projects '("~/" "/tmp")) projectile-ignored-projects '("~/" "/tmp"))
: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|init-project-mode) (add-hook 'find-file-hook #'doom|init-project-mode)
(projectile-mode +1) (projectile-mode +1)
@ -131,7 +131,7 @@ for .dir-locals.el.")
(defvar doom-project-hook nil (defvar doom-project-hook nil
"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|init-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