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