Fix #3627: persist auto-yasnippet snippets

Needs to be persisted to a directory yasnippet can see.
This commit is contained in:
Henrik Lissner 2020-07-25 22:05:40 -04:00
parent e71b7fc705
commit b2787a9426
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -124,8 +124,8 @@
(use-package! auto-yasnippet
:defer t
:init (setq aya-persist-snippets-dir (concat doom-etc-dir "auto-snippets/"))
:config
(setq aya-persist-snippets-dir +snippets-dir)
(defadvice! +snippets--inhibit-yas-global-mode-a (orig-fn &rest args)
"auto-yasnippet enables `yas-global-mode'. This is obnoxious for folks like
us who use yas-minor-mode and enable yasnippet more selectively. This advice