You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to move this dir to .emacs.d/.local/snippets, but every time it creates .emacs.d/snippets, I tried following config:
(use-package yasnippet
:ensure t
:custom
(yas-snippet-dirs `(,(locate-user-emacs-file ".local/snippets"))))
it accepts this path, but still create the .emacs.d/snippets.
I tried to read the code and I found yas--load-snippet-dirs will create .emacs.d/snippets if it exists in yas-snippet-dirs (https://github.com/joaotavora/yasnippet/blob/master/yasnippet.el#L1983-L1999), though I modified it to exclude .emacs.d/snippets, I think this may be called before user customize yas-snippet-dirs?
Another solution may be that let user custom yas--default-user-snippets-dir instead of making it a constant.
The text was updated successfully, but these errors were encountered:
I'd like to move this dir to
.emacs.d/.local/snippets
, but every time it creates.emacs.d/snippets
, I tried following config:it accepts this path, but still create the
.emacs.d/snippets
.I tried to read the code and I found
yas--load-snippet-dirs
will create.emacs.d/snippets
if it exists inyas-snippet-dirs
(https://github.com/joaotavora/yasnippet/blob/master/yasnippet.el#L1983-L1999), though I modified it to exclude.emacs.d/snippets
, I think this may be called before user customizeyas-snippet-dirs
?Another solution may be that let user custom
yas--default-user-snippets-dir
instead of making it a constant.The text was updated successfully, but these errors were encountered: