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
For someone, custom file may be loaded at last of all init code. The changing by yasnippet-snippets-initialize will be overwritten unless one edit custom file or load this package by after-init-hook.
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion @Vonfry .
I didn't quite understand what you mean though, so the problem is that since yasnippet-snippets is loaded after yasnippet and before you call snippets-initialize, yasnippet is not picking up all the snippets correctly?
I actually haven't used yasnippet-snippets-initialize for a long time, they are just lazily loaded anyway.
Removing that would not solve your problem?
(require 'yasnippet)
;; yas-snippet-dirs has a default value
(custom-set-variables '(yas-snippet-dirs some-list))
;; This will be saved in custom-file
(require 'yasnippet-snippets)
;; yasnippet-snippetsinitialize will overwrite yas-snippet-dirs, but not saving in custom-file
(load custom-file)
;; dirs edited by yasnippet-snippetsinitialize is lost.
One way to solve is calling (custom-save-all) before loading custom-file.
For someone, custom file may be loaded at last of all init code. The changing by
yasnippet-snippets-initialize
will be overwritten unless one edit custom file or load this package byafter-init-hook
.The text was updated successfully, but these errors were encountered: