Function: eglot-tempel-mode
eglot-tempel-mode is an interactive and natively compiled function
defined in eglot-tempel.el.
Signature
(eglot-tempel-mode &optional ARG)
Documentation
Toggle eglot template support by tempel.
This is a global minor mode. If called interactively, toggle the
Eglot-Tempel mode mode. If the prefix argument is positive, enable
the mode, and if it is zero or negative, disable the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable the
mode if ARG is nil, omitted, or is a positive number. Disable the mode
if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate (default-value \=eglot-tempel-mode)'.
The mode's hook is called both when the mode is enabled and when it is disabled.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/lqz3cn8ff5miaxachlhqgwligclg6la5-emacs-packages-deps/share/emacs/site-lisp/elpa/eglot-tempel-20241115.1110/eglot-tempel.el
;;;###autoload
(define-minor-mode eglot-tempel-mode
"Toggle eglot template support by tempel."
:init-value nil
:global t
:lighter nil
(progn
(if eglot-tempel-mode
(unless (advice-member-p 'eglot--snippet-expansion-fn
#'eglot-tempel--snippet-expansion-fn)
(advice-add 'eglot--snippet-expansion-fn
:override #'eglot-tempel--snippet-expansion-fn))
(advice-remove 'eglot--snippet-expansion-fn
#'eglot-tempel--snippet-expansion-fn))
(when (eglot-current-server)
(eglot-reconnect (eglot-current-server)))))