.dir-locals.el: Add tempel snippets.

Change-Id: Ic16f571f26fffee12e478e00c54be55e6eb90831
Signed-off-by: jgart <jgart@dismail.de>
This commit is contained in:
Nicolas Graves 2024-09-14 16:47:16 +02:00 committed by jgart
parent 730b1f0768
commit e602b799fb
No known key found for this signature in database
GPG key ID: A52AA2B477B6DD35
3 changed files with 15 additions and 4 deletions

View file

@ -19,6 +19,21 @@
(locate-dominating-file default-directory (locate-dominating-file default-directory
".dir-locals.el"))) ".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 ;; YASnippet
(eval . (with-eval-after-load (eval . (with-eval-after-load
'yasnippet 'yasnippet

View file

@ -1,5 +1,3 @@
-*- mode: lisp-data -*-
scheme-mode scheme-mode
(package... (package...

View file

@ -1,5 +1,3 @@
-*- mode: lisp-data -*-
text-mode :when (bound-and-true-p git-commit-mode) text-mode :when (bound-and-true-p git-commit-mode)
(add\ "gnu: Add " (add\ "gnu: Add "