mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Attempt to fix a bug with yas/snippet-dirs
initialization.
This commit is contained in:
parent
e50eafed99
commit
c0fce97475
@ -164,8 +164,12 @@
|
|||||||
"Yet Another Snippet extension"
|
"Yet Another Snippet extension"
|
||||||
:group 'editing)
|
:group 'editing)
|
||||||
|
|
||||||
(defcustom yas/snippet-dirs (list "~/.emacs.d/snippets"
|
(defvar yas/load-file-name load-file-name
|
||||||
(concat (file-name-directory load-file-name) "snippets"))
|
"Store the filename that yasnippet.el was originally loaded from.")
|
||||||
|
(defcustom yas/snippet-dirs (remove nil
|
||||||
|
(list "~/.emacs.d/snippets"
|
||||||
|
(when yas/load-file-name
|
||||||
|
(concat (file-name-directory yas/load-file-name) "snippets"))))
|
||||||
"Directory or list of snippet dirs for each major mode.
|
"Directory or list of snippet dirs for each major mode.
|
||||||
|
|
||||||
The directory where user-created snippets are to be stored. Can
|
The directory where user-created snippets are to be stored. Can
|
||||||
|
Loading…
x
Reference in New Issue
Block a user