yas-new-snippet tries to create a Snippet in ~/.emacs.d/snippets
This is because the list of snippet dirs had our ~/.emacs.d/private/snippets at the end so it doesn't guess that. Something must have changed upstream. Also it's better to have our own custom snippets to be first so as to override the default ones if we pleased.
This commit is contained in:
parent
be47a4c477
commit
553e85cb15
|
@ -198,9 +198,9 @@
|
|||
(yas-global-mode 1)
|
||||
(let ((private-yas-dir (concat configuration-layer-private-directory "snippets")))
|
||||
(setq yas-snippet-dirs
|
||||
(append (when (boundp 'yas-snippet-dirs)
|
||||
yas-snippet-dirs)
|
||||
(list private-yas-dir)))
|
||||
(append (list private-yas-dir)
|
||||
(when (boundp 'yas-snippet-dirs)
|
||||
yas-snippet-dirs)))
|
||||
(setq yas-wrap-around-region t)))))
|
||||
(add-to-hooks 'spacemacs/load-yasnippet '(prog-mode-hook
|
||||
markdown-mode-hook
|
||||
|
|
Loading…
Reference in a new issue