.dir-locals.el: Add guix yasnippets.

* .dir-locals.el (eval): Add guix yasnippets.
This commit is contained in:
Andrew Tropin 2022-08-03 17:51:48 +03:00
parent d22a5c1851
commit 956a79b9b2
No known key found for this signature in database
GPG key ID: 2208D20958C1DEB0

View file

@ -14,6 +14,17 @@
(eval . (setq-local guix-directory (eval . (setq-local guix-directory
(locate-dominating-file default-directory (locate-dominating-file default-directory
".dir-locals.el"))) ".dir-locals.el")))
;; YASnippet
(eval . (with-eval-after-load
'yasnippet
(let ((guix-yasnippets
(expand-file-name
"etc/snippets"
(locate-dominating-file default-directory
".dir-locals.el"))))
(unless (member guix-yasnippets yas-snippet-dirs)
(add-to-list 'yas-snippet-dirs guix-yasnippets)
(yas-reload-all)))))
;; Geiser ;; Geiser
;; This allows automatically setting the `geiser-guile-load-path' ;; This allows automatically setting the `geiser-guile-load-path'