Variable: tagref-mode
tagref-mode is a buffer-local variable defined in tagref.el.
Documentation
Non-nil if Tagref mode is enabled.
Use the command tagref-mode(var)/tagref-mode(fun) to change this variable.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/mnch55hf9yszlb4dvfqhbqf0840v41qh-emacs-packages-deps/share/emacs/site-lisp/tagref.el
;;;###autoload
(define-minor-mode tagref-mode
"Toggle `tagref-mode' for the current project.
When enabled, provides project-wide:
- Font-lock highlighting for [tag:...] and [ref:...] directives
- Completion for [ref:] and [tag:] directives
- Xref integration for \\[xref-find-definitions] navigation to tag definitions
- `tagref-check' command for validation
- `tagref-list-tags' command for browsing tags
This mode is project-aware: enabling it activates tagref features
for all buffers in the current project."
:lighter " Tagref"
:group 'tagref
(if tagref-mode
(if (tagref--project-root)
(tagref--enable-in-project)
(setq tagref-mode nil)
(user-error "Not in a project; tagref-mode requires project.el"))
(tagref--disable-in-project)))