mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
More descriptive signatures for set-file-template!
And set-file-templates!
This commit is contained in:
@ -32,14 +32,18 @@ these properties:
|
|||||||
If non-nil, ignore this template if this buffer isn't in a project.
|
If non-nil, ignore this template if this buffer isn't in a project.
|
||||||
:ignore BOOL
|
:ignore BOOL
|
||||||
If non-nil, don't expand any template for this file and don't test any other
|
If non-nil, don't expand any template for this file and don't test any other
|
||||||
file template rule against this buffer."
|
file template rule against this buffer.
|
||||||
|
|
||||||
|
\(fn PRED &key WHEN TRIGGER MODE PROJECT IGNORE)"
|
||||||
(declare (indent defun))
|
(declare (indent defun))
|
||||||
(defer-until! (boundp '+file-templates-alist)
|
(defer-until! (boundp '+file-templates-alist)
|
||||||
(+file-templates--set pred plist)))
|
(+file-templates--set pred plist)))
|
||||||
|
|
||||||
;;;###autodef
|
;;;###autodef
|
||||||
(defun set-file-templates! (&rest templates)
|
(defun set-file-templates! (&rest templates)
|
||||||
"Like `set-file-templates!', but register many file templates at once."
|
"Like `set-file-templates!', but can register multiple file templates at once.
|
||||||
|
|
||||||
|
\(fn &rest (PRED &key WHEN TRIGGER MODE PROJECT IGNORE))"
|
||||||
(defer-until! (boundp '+file-templates-alist)
|
(defer-until! (boundp '+file-templates-alist)
|
||||||
(dolist (template templates)
|
(dolist (template templates)
|
||||||
(+file-templates--set (car template) (cdr template)))))
|
(+file-templates--set (car template) (cdr template)))))
|
||||||
|
Reference in New Issue
Block a user