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 diff --git a/etc/snippets/tempel/scheme-mode b/etc/snippets/tempel/scheme-mode.eld similarity index 98% rename from etc/snippets/tempel/scheme-mode rename to etc/snippets/tempel/scheme-mode.eld index 249f4ce8e3..21a5dd6dee 100644 --- a/etc/snippets/tempel/scheme-mode +++ b/etc/snippets/tempel/scheme-mode.eld @@ -1,5 +1,3 @@ --*- mode: lisp-data -*- - scheme-mode (package... diff --git a/etc/snippets/tempel/text-mode b/etc/snippets/tempel/text-mode.eld similarity index 99% rename from etc/snippets/tempel/text-mode rename to etc/snippets/tempel/text-mode.eld index c635b7ee6f..397221b846 100644 --- a/etc/snippets/tempel/text-mode +++ b/etc/snippets/tempel/text-mode.eld @@ -1,5 +1,3 @@ --*- mode: lisp-data -*- - text-mode :when (bound-and-true-p git-commit-mode) (add\ "gnu: Add "