[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/tempel 9948c6889d 43/82: Add tempel-form-prefix and tem
From: |
ELPA Syncer |
Subject: |
[elpa] externals/tempel 9948c6889d 43/82: Add tempel-form-prefix and tempel-field-prefix |
Date: |
Sun, 9 Jan 2022 20:58:44 -0500 (EST) |
branch: externals/tempel
commit 9948c6889dd93fa8f0a6821af92d1c40343befe4
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Add tempel-form-prefix and tempel-field-prefix
---
tempel.el | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/tempel.el b/tempel.el
index c4c4e59fbb..46420e1093 100644
--- a/tempel.el
+++ b/tempel.el
@@ -49,6 +49,16 @@
"Path to the template file."
:type 'string)
+(defcustom tempel-field-prefix
+ #(" " 0 1 (display (space :width (2)) face tempel-field))
+ "Field indicator prefix string."
+ :type 'string)
+
+(defcustom tempel-form-prefix
+ #(" " 0 1 (display (space :width (2)) face tempel-form))
+ "Form indicator prefix string."
+ :type 'string)
+
(defcustom tempel-insert-annotation 40
"Annotation width for `tempel-insert'."
:type '(choice (const nil integer)))
@@ -174,7 +184,7 @@ INIT is the optional initial input."
(let ((ov (make-overlay (point) (point))))
(push ov (car st))
(overlay-put ov 'face 'tempel-field)
- (overlay-put ov 'before-string #(" " 0 1 (display (space :width (1)) face
tempel-field)))
+ (overlay-put ov 'before-string tempel-field-prefix)
(overlay-put ov 'modification-hooks (list #'tempel--field-modified))
(overlay-put ov 'insert-in-front-hooks (list #'tempel--field-modified))
(overlay-put ov 'insert-behind-hooks (list #'tempel--field-modified))
@@ -196,7 +206,7 @@ INIT is the optional initial input."
(void-variable nil))
(let ((ov (make-overlay beg (point) nil t)))
(overlay-put ov 'face 'tempel-form)
- (overlay-put ov 'before-string #(" " 0 1 (display (space :width (1))
face tempel-form)))
+ (overlay-put ov 'before-string tempel-form-prefix)
(overlay-put ov 'tempel--form form)
(push ov (car st)))))
- [elpa] externals/tempel ffdf2c792a 77/82: Document the abbrev modes (See #14), (continued)
- [elpa] externals/tempel ffdf2c792a 77/82: Document the abbrev modes (See #14), ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 460f8fe806 81/82: Fix the MELPA issues, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel aec4f10253 82/82: Addition to GNU ELPA, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel d4bd649645 59/82: Minor renaming, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 2cff879181 30/82: Do not call modification hooks from forms, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 1222c59b30 39/82: Update README, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 07d16fded7 67/82: Update fields when new field is inserted, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel f0df571f66 17/82: Respect derived modes, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel bf95b3f1c2 31/82: Add support for (q (FORM ...) var), ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 64f896d782 44/82: Fix jump to first field, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 9948c6889d 43/82: Add tempel-form-prefix and tempel-field-prefix,
ELPA Syncer <=
- [elpa] externals/tempel ad71c25632 32/82: Add syntax extension (p (FORM...) <NAME>), ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 5dbdc76eb2 74/82: Specify the completion category tempel, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 65a3eb0458 76/82: Improve abbreviation expansion, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 57bbc5e681 78/82: README update, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel ac3df540a4 69/82: Remove underlines from faces, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 7cf25bd795 71/82: Simplify templates data structure at load time, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 69f7cb3212 06/82: Reimplement without Tempo for more flexibility, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel fbef94d77d 48/82: Minor cleanup, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 01e7430343 27/82: Add docstrings, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel a03c36c8dd 02/82: Improve behavior when templates are nested, ELPA Syncer, 2022/01/09