Guix/Emacs: Enable Yasnippet after loading the Guix snippets.

master
Pierre Neidhardt 2020-03-11 15:17:34 +01:00
parent c2fa76a145
commit 3e0f77bfd1
1 changed files with 2 additions and 2 deletions

View File

@ -2,14 +2,14 @@
(with-eval-after-load 'geiser-guile
(when (require 'yasnippet nil t)
(yas-global-mode 1)
;; This is not enough since COMMIT_MSG is not in scheme-mode.
;; TODO: Add to find-file-hook instead and check if parent folder is ~/projects/guix.
;; (add-hook 'scheme-mode-hook 'yas-minor-mode)
(with-eval-after-load 'yasnippet
(add-to-list 'yas-snippet-dirs
(expand-file-name "etc/snippets"
ambrevar/guix-checkout-directory))))
ambrevar/guix-checkout-directory)))
(yas-global-mode 1))
(add-to-list 'geiser-guile-load-path ambrevar/guix-checkout-directory)
(dolist (dir '("~/projects/nonguix" "~/projects/games"))
(when (file-directory-p dir)