remove um-project-override and .project.el fallback : project-vc-merge-submodules nil
project-vc-merge-submodules to nil will do what I want.
This commit is contained in:
parent
b94420aa95
commit
a595abcd2e
1 changed files with 0 additions and 17 deletions
17
elisp/um.el
17
elisp/um.el
|
|
@ -64,23 +64,6 @@
|
|||
)
|
||||
)
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; journal/.project.el
|
||||
|
||||
;; normally .git detection works fine. But for my journal/ I don't git.
|
||||
;; https://michael.stapelberg.ch/posts/2021-04-02-emacs-project-override/
|
||||
(defun um-project-override (dir)
|
||||
"Returns the parent directory containing a .project.el file,
|
||||
if any, to override the standard project.el detection logic when
|
||||
needed.
|
||||
"
|
||||
(let ((override (locate-dominating-file dir ".project.el")))
|
||||
(if override
|
||||
(list 'vc nil override)
|
||||
nil)))
|
||||
;; Cannot use :hook because 'project-find-functions does not end in -hook
|
||||
(add-hook 'project-find-functions #'um-project-override)
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; find-file-at-point
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue