[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/tempel 3054bbfdbc 2/2: Remove tempel-local-templates
From: |
ELPA Syncer |
Subject: |
[elpa] externals/tempel 3054bbfdbc 2/2: Remove tempel-local-templates |
Date: |
Thu, 13 Jan 2022 22:57:47 -0500 (EST) |
branch: externals/tempel
commit 3054bbfdbc0d4c82be32ca05fc9c6be0473fd7ed
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Remove tempel-local-templates
It is better to define the configuration variable in the init.el.
---
tempel.el | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/tempel.el b/tempel.el
index 3793d4d8af..038e5b9e27 100644
--- a/tempel.el
+++ b/tempel.el
@@ -72,7 +72,7 @@ nil or a new template element, which is subsequently
evaluated."
:type 'hook)
(defcustom tempel-template-sources
- (list 'tempel-local-templates #'tempel--file-templates)
+ (list #'tempel-file-templates)
"List of template sources.
A source can either be a function or a variable symbol. The functions
must return a list of templates which apply to the buffer or context."
@@ -102,9 +102,6 @@ must return a list of templates which apply to the buffer
or context."
(t :inherit highlight :slant italic))
"Face used for default values.")
-(defvar-local tempel-local-templates nil
- "List of templates which apply to the current buffer.")
-
(defvar tempel--file-templates nil
"Templates loaded from the `tempel-file'.")
@@ -370,8 +367,8 @@ PROMPT is the optional prompt/default value."
(push (cons mode (nreverse list)) result)))
result)))
-(defun tempel--file-templates ()
- "Return templates defined in `tempel-file'."
+(defun tempel-file-templates ()
+ "Load the templates defined in `tempel-file'."
(let ((mod (time-convert (file-attribute-modification-time
(file-attributes tempel-file))
'integer)))