From 608bc9f75b940d0e245735c101704ee9a211507f Mon Sep 17 00:00:00 2001 From: yoavm448 Date: Fri, 14 Feb 2020 15:07:46 +0200 Subject: [PATCH] file-templates docs: registering and overriding --- modules/editor/file-templates/README.org | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/editor/file-templates/README.org b/modules/editor/file-templates/README.org index 519c0ee47..55b2eafc3 100644 --- a/modules/editor/file-templates/README.org +++ b/modules/editor/file-templates/README.org @@ -49,8 +49,12 @@ for comment headers in code. #+end_quote * Configuration -** TODO Registering a new file template -** TODO Changing existing file templates +** Registering a new file template +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 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