diff options
author | Nicolas Graves <ngraves@ngraves.fr> | 2024-09-14 16:47:16 +0200 |
---|---|---|
committer | jgart <jgart@dismail.de> | 2024-09-21 11:05:36 -0500 |
commit | e602b799fb751ab74eb6fe6d395905a962785085 (patch) | |
tree | 1d239ce5e6b3aa5f33a63cd6330bb73b5fe439c1 /.dir-locals.el | |
parent | 730b1f0768884b0c4d2b53203b87d726d02d19da (diff) |
.dir-locals.el: Add tempel snippets.
Change-Id: Ic16f571f26fffee12e478e00c54be55e6eb90831
Signed-off-by: jgart <jgart@dismail.de>
Diffstat (limited to '.dir-locals.el')
-rw-r--r-- | .dir-locals.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el index d0c25b867b..201ebd4198 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -19,6 +19,21 @@ (locate-dominating-file default-directory ".dir-locals.el"))) + ;; TempEl + (eval . (with-eval-after-load + 'tempel + (if (stringp tempel-path) + (setq tempel-path (list tempel-path))) + (let ((guix-tempel-snippets + (concat + (expand-file-name + "etc/snippets/tempel" + (locate-dominating-file default-directory + ".dir-locals.el")) + "/*.eld"))) + (unless (member guix-tempel-snippets tempel-path) + (add-to-list 'tempel-path guix-tempel-snippets))))) + ;; YASnippet (eval . (with-eval-after-load 'yasnippet |