mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
Fix #648; create ~/.emacs.d/snippets automatically
* yasnippet.el (yas--load-snippet-dirs): Create yas--default-user-snippets-dir, if needed.
This commit is contained in:
parent
100d8d1904
commit
46256db43d
@ -1806,6 +1806,8 @@ With prefix argument USE-JIT do jit-loading of snippets."
|
||||
prompt the user to select one."
|
||||
(let (errors)
|
||||
(if yas-snippet-dirs
|
||||
(when (member yas--default-user-snippets-dir yas-snippet-dirs)
|
||||
(make-directory yas--default-user-snippets-dir t))
|
||||
(dolist (directory (reverse (yas-snippet-dirs)))
|
||||
(cond ((file-directory-p directory)
|
||||
(yas-load-directory directory (not nojit))
|
||||
|
Loading…
x
Reference in New Issue
Block a user