Skip to content

Commit e813c14

Browse files
authored
Merge pull request #361 from npostavs/init-sym
Revert "fix initializer", adding the symbol is correct
2 parents 2686c7e + 67901f1 commit e813c14

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

yasnippet-snippets.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@
4545
;;;###autoload
4646
(defun yasnippet-snippets-initialize ()
4747
"Load the `yasnippet-snippets' snippets directory."
48-
(add-to-list 'yas-snippet-dirs yasnippet-snippets-dir t)
48+
;; NOTE: we add the symbol `yasnippet-snippets-dir' rather than its
49+
;; value, so that yasnippet will automatically find the directory
50+
;; after this package is updated (i.e., moves directory).
51+
(add-to-list 'yas-snippet-dirs 'yasnippet-snippets-dir t)
4952
(yas-load-directory yasnippet-snippets-dir t))
5053

5154
(defgroup yasnippet-snippets nil

0 commit comments

Comments
 (0)