mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
file-templates docs: registering and overriding
This commit is contained in:
@ -49,8 +49,12 @@ for comment headers in code.
|
|||||||
#+end_quote
|
#+end_quote
|
||||||
|
|
||||||
* Configuration
|
* Configuration
|
||||||
** TODO Registering a new file template
|
** Registering a new file template
|
||||||
** TODO Changing existing file templates
|
Look into the documentation of ~set-file-template!~ and ~set-file-templates!~.
|
||||||
|
** Changing existing file templates
|
||||||
|
Simply register a new template (using ~set-file-template!~) that matches the same
|
||||||
|
file. The new template would be pushed to the top of ~+file-template-alist~ and
|
||||||
|
thus would take priority while searching for a template to insert.
|
||||||
** Adding new OSS licenses
|
** Adding new OSS licenses
|
||||||
The ~+file-templates/insert-license~ command searches for snippets under
|
The ~+file-templates/insert-license~ command searches for snippets under
|
||||||
~text-mode~ that are named ~__license-ABC~, where ABC is the short name of the
|
~text-mode~ that are named ~__license-ABC~, where ABC is the short name of the
|
||||||
|
Reference in New Issue
Block a user