[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: .dir-locals.el: Add guix yasnippets.
From: |
guix-commits |
Subject: |
branch master updated: .dir-locals.el: Add guix yasnippets. |
Date: |
Mon, 05 Sep 2022 02:10:47 -0400 |
This is an automated email from the git hooks/post-receive script.
abcdw pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 956a79b9b2 .dir-locals.el: Add guix yasnippets.
956a79b9b2 is described below
commit 956a79b9b2ba555bf41aafe0c44b9a68a8d6c37a
Author: Andrew Tropin <andrew@trop.in>
AuthorDate: Wed Aug 3 17:51:48 2022 +0300
.dir-locals.el: Add guix yasnippets.
* .dir-locals.el (eval): Add guix yasnippets.
---
.dir-locals.el | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/.dir-locals.el b/.dir-locals.el
index e4c1da8026..6fa0ec8bc6 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -14,6 +14,17 @@
(eval . (setq-local guix-directory
(locate-dominating-file default-directory
".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
;; This allows automatically setting the `geiser-guile-load-path'
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: .dir-locals.el: Add guix yasnippets.,
guix-commits <=