move project-switch-project override into init.el : not about um

This commit is contained in:
bth 2025-03-05 10:40:58 -08:00
commit 859b4a222f

View file

@ -159,25 +159,6 @@ Since journal/ is the origin and other projects shadow it.
(funcall origfunc)) (funcall origfunc))
)) ))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; C-x p p
;;;###autoload
(defun um-project-find-meta ()
(interactive)
;; this works because `project-switch-project' overrides the dir:
(find-file (expand-file-name "*meta.md" (caddr (project-current))) t)
)
;; overwrite
(setq project-switch-commands
'(
(um-project-find-meta "open meta" "m")
(project-dired "dired")
(project-find-file "find file")
(project-find-regexp "find regexp")
))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; tags ;; tags