diff options
Diffstat (limited to '.dir-locals.el')
-rw-r--r-- | .dir-locals.el | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el index e4c1da8026..47a4ccd2bb 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -10,11 +10,25 @@ . "\\(<https?://\\bugs\\.gnu\\.org/\\([0-9]+\\)>\\)") (bug-reference-url-format . "https://bugs.gnu.org/%s") + (eval . (add-to-list 'completion-ignored-extensions ".go")) + ;; Emacs-Guix (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/yas" + (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' ;; variable when using various Guix checkouts (e.g., via git worktrees). |