Guix/Emacs: Enable Yasnippet after loading the Guix snippets.
parent
c2fa76a145
commit
3e0f77bfd1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue