tempel-insert is an autoloaded, interactive and byte-compiled function
defined in tempel.el.
Signature
(tempel-insert TEMPLATE-OR-NAME)
Documentation
Insert TEMPLATE-OR-NAME.
If called interactively, select a template with completing-read.
This function has :after advice: oo--enter-evil-insert-state-maybe.
Key Bindings
This command is not in any keymaps.
References
tempel-insert is unused in tempel.el.
Find all references Functions used by tempel-insert
Advice
This function is advised.
Debugging
Enable edebug Enable tracing
Disassemble Forget
Source Code
~/.config/emacs/packages/elpaca/builds/tempel/tempel.el
(defun tempel-insert (template-or-name)
"Insert TEMPLATE-OR-NAME.
If called interactively, select a template with `completing-read'."
(interactive (list nil))
(tempel--insert
(if (consp template-or-name) template-or-name
(let ((templates (or (tempel--templates)
(error "Tempel: No templates for %s" major-mode))))
(unless template-or-name
(setq template-or-name
(intern-soft
(completing-read
"Template: "
(lambda (str pred action)
(if (eq action 'metadata)
`(metadata
(category . tempel)
,@(when tempel-insert-annotation
`((annotation-function
. ,(apply-partially
#'tempel--annotate templates tempel-insert-annotation
#(" " 1 2 (display (space :align-to (+ left 20)))))))))
(complete-with-action action templates str pred)))
nil t nil 'tempel--history))))
(or (and template-or-name (alist-get template-or-name templates))
(user-error "Template %s not found" template-or-name))))
(tempel--region)))
Symbol Properties
advice--pending
nil
defalias-fset-function
#[128 "\304\300\301#\207"
[advice--defalias-fset nil :around nil apply]
5 advice]
Disassemble
event-symbol-element-mask
(tempel-insert 0)
event-symbol-elements
(tempel-insert)
function-documentation
(advice--make-docstring 'tempel-insert)
function-history
("/home/luis/.config/emacs/packages/elpaca/builds/tempel/tempel.elc"
(autoload "tempel" "Insert TEMPLATE-OR-NAME.\nIf called interactively, select a template with `completing-read'.\n\n(fn TEMPLATE-OR-NAME)" t nil)
nil
(autoload "tempel" nil t function)
"/home/luis/.config/emacs/lisp/130-init-tempel.el"
(autoload "tempel" "Insert TEMPLATE-OR-NAME.\nIf called interactively, select a template with `completing-read'.\n\n(fn TEMPLATE-OR-NAME)" t nil))
modifier-cache
((0 . tempel-insert))