From 67901f19844623c6c0e385a8ad542166f7b62654 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Fri, 27 Dec 2019 20:37:32 -0500 Subject: [PATCH] Revert "fix initializer", adding the symbol is correct --- yasnippet-snippets.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/yasnippet-snippets.el b/yasnippet-snippets.el index 96e4f6f..dc689e7 100644 --- a/yasnippet-snippets.el +++ b/yasnippet-snippets.el @@ -45,7 +45,10 @@ ;;;###autoload (defun yasnippet-snippets-initialize () "Load the `yasnippet-snippets' snippets directory." - (add-to-list 'yas-snippet-dirs yasnippet-snippets-dir t) + ;; NOTE: we add the symbol `yasnippet-snippets-dir' rather than its + ;; value, so that yasnippet will automatically find the directory + ;; after this package is updated (i.e., moves directory). + (add-to-list 'yas-snippet-dirs 'yasnippet-snippets-dir t) (yas-load-directory yasnippet-snippets-dir t)) (defgroup yasnippet-snippets nil