Remove doom-project file/dir local var support
It didn't really work, and it's too Doom-specific to be useful. We'll need better heuristics.
This commit is contained in:
parent
bb3f027ca2
commit
8da2785141
1 changed files with 0 additions and 14 deletions
|
@ -14,7 +14,6 @@
|
||||||
|
|
||||||
: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)
|
|
||||||
|
|
||||||
(global-set-key [remap evil-jump-to-tag] #'projectile-find-tag)
|
(global-set-key [remap evil-jump-to-tag] #'projectile-find-tag)
|
||||||
(global-set-key [remap find-tag] #'projectile-find-tag)
|
(global-set-key [remap find-tag] #'projectile-find-tag)
|
||||||
|
@ -67,23 +66,10 @@
|
||||||
;;
|
;;
|
||||||
;; Project-based minor modes
|
;; Project-based minor modes
|
||||||
|
|
||||||
(defvar-local doom-project nil
|
|
||||||
"Either the symbol or a list of project modes you want to enable. Available
|
|
||||||
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 ()
|
|
||||||
"Auto-enable the project(s) listed in `doom-project'."
|
|
||||||
(when doom-project
|
|
||||||
(if (symbolp doom-project)
|
|
||||||
(funcall doom-project)
|
|
||||||
(cl-loop for mode in doom-project
|
|
||||||
unless (symbol-value mode)
|
|
||||||
do (funcall mode)))))
|
|
||||||
|
|
||||||
(cl-defmacro def-project-mode! (name &key
|
(cl-defmacro def-project-mode! (name &key
|
||||||
modes
|
modes
|
||||||
files
|
files
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue