Function: tempel--templates

tempel--templates is a natively compiled function defined in tempel.el.

Signature

(tempel--templates)

Documentation

Return templates for current mode.

Source Code

;; Defined in /nix/store/b3ibjbs2i12kyhwapibfx6i39f025i85-emacs-packages-deps/share/emacs/site-lisp/elpa/tempel-20260705.1258/tempel.el
(defun tempel--templates ()
  "Return templates for current mode."
  (let (list)
    (run-hook-wrapped
     'tempel-template-sources
     (lambda (fun)
       (cond
        ((functionp fun) (push (funcall fun) list))
        ((boundp fun) (push (symbol-value fun) list))
        (t (error "Template source is not a function or a variable: %S" fun)))
       nil))
    (apply #'append (nreverse list))))