Merge pull request #361 from npostavs/init-sym

Revert "fix initializer", adding the symbol is correct
This commit is contained in:
Andrea Crotti 2019-12-30 14:05:24 +00:00 committed by GitHub
commit e813c1479a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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