From b2787a9426fd8e3a8620b439af82e46c89ce0ce4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 25 Jul 2020 22:05:40 -0400 Subject: [PATCH] Fix #3627: persist auto-yasnippet snippets Needs to be persisted to a directory yasnippet can see. --- modules/editor/snippets/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/editor/snippets/config.el b/modules/editor/snippets/config.el index f4d69ed27..f0d81073e 100644 --- a/modules/editor/snippets/config.el +++ b/modules/editor/snippets/config.el @@ -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