tempel-abbrev-mode is an autoloaded, interactive and byte-compiled
function defined in tempel.el.
Signature
(tempel-abbrev-mode &optional ARG)
Documentation
Install Tempel templates as abbrevs.
This is a minor mode. If called interactively, toggle the
Tempel-Abbrev 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 tempel-abbrev-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.
References
References in tempel.el:
(define-minor-mode tempel-abbrev-mode ...)
(defun tempel--abbrev-on ...)
Find all references Functions used by tempel-abbrev-mode
Debugging
Enable edebug Enable tracing
Disassemble Forget
Source Code
~/.config/emacs/elpa/tempel-20250101.927/tempel.el
(define-minor-mode tempel-abbrev-mode
"Install Tempel templates as abbrevs."
:group 'tempel
:global nil
(setq-local abbrev-minor-mode-table-alist
(assq-delete-all 'tempel-abbrev-mode abbrev-minor-mode-table-alist))
(when (eq abbrev-minor-mode-table-alist
(default-value 'abbrev-minor-mode-table-alist))
(kill-local-variable 'abbrev-minor-mode-table-alist))
(when tempel-abbrev-mode
(let ((table (make-abbrev-table))
(tempel--ignore-condition t))
(dolist (template (tempel--templates))
(let* ((name (symbol-name (car template)))
(hook (make-symbol name)))
(fset hook (lambda ()
(tempel--delete-word name)
(tempel--insert (cdr template) nil)
t))
(put hook 'no-self-insert t)
(define-abbrev table name 'Template hook
:system t :enable-function
(lambda () (assq (car template) (tempel--templates))))))
(setq-local abbrev-minor-mode-table-alist
(cons `(tempel-abbrev-mode . ,table)
abbrev-minor-mode-table-alist)))))
Symbol Properties
event-symbol-element-mask
(tempel-abbrev-mode 0)
event-symbol-elements
(tempel-abbrev-mode)
function-history
("/home/luis/.config/emacs/elpa/tempel-20250101.927/tempel.elc"
(autoload "tempel" "Install Tempel templates as abbrevs.\n\nThis is a minor mode. If called interactively, toggle the\n`Tempel-Abbrev mode' mode. If the prefix argument is positive,\nenable the mode, and if it is zero or negative, disable the mode.\n\nIf called from Lisp, toggle the mode if ARG is `toggle'. Enable\nthe mode if ARG is nil, omitted, or is a positive number.\nDisable the mode if ARG is a negative number.\n\nTo check whether the minor mode is enabled in the current buffer,\nevaluate `tempel-abbrev-mode'.\n\nThe mode's hook is called both when the mode is enabled and when\nit is disabled.\n\n(fn &optional ARG)" t nil))
modifier-cache
((0 . tempel-abbrev-mode))
variable-documentation
("/home/luis/.config/emacs/elpa/tempel-20250101.927/tempel.elc" . 26148)