Function: tagref--enable-in-project
tagref--enable-in-project is a natively compiled function defined in
tagref.el.
Signature
(tagref--enable-in-project)
Documentation
Enable tagref-mode(var)/tagref-mode(fun) for all buffers in the current project.
Source Code
;; Defined in /nix/store/mnch55hf9yszlb4dvfqhbqf0840v41qh-emacs-packages-deps/share/emacs/site-lisp/tagref.el
(defun tagref--enable-in-project ()
"Enable `tagref-mode' for all buffers in the current project."
(when-let ((root (tagref--project-root)))
(puthash root t tagref--enabled-projects)
;; Enable in all existing project buffers
(dolist (buf (buffer-list))
(with-current-buffer buf
(when (and (tagref--project-root)
(string= (tagref--project-root) root))
(tagref--enable-in-buffer))))
;; Hook for future buffers
(add-hook 'find-file-hook #'tagref--enable-in-buffer)))