Guix: Fix yasnippet activation

master
Pierre Neidhardt 2018-08-01 18:34:54 +02:00
parent 7f8e301547
commit db68560071
1 changed files with 4 additions and 2 deletions

View File

@ -2,8 +2,10 @@
(with-eval-after-load 'geiser-guile
(when (require 'yasnippet nil t)
;; (yas-global-mode 1)
(add-hook 'scheme-mode-hook 'yas-minor-mode)
(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"