It seems like some variables that I set at one place in my init file could potentially be modified by other packages that are loaded later.
One place where this has come up for me is the variable yas-snippet-dirs
which I set after I load yasnippet
, but which is then modified when I load elpy (elpy appends its own snippet directory to the list).
If I want to ensure that all that is contained in yas-snippet-dirs
is "~/.emacs.d/snippets"
, I can simply make sure that I set
(setq yas-snippet-dirs '("~/.emacs.d/snippets"))
after I load elpy.
However, I am wondering if there is a general way to tell packages not to modify a variable. Thank you!
yas-snippet-dirs
. This seems like an appropriate thing to do, and shouldn't break your snippets for other modes. It also looks like you can disable this feature via the elpy module system. What problem is it causing?SPC
(to fix other issues), I find myself constantly expanding elpy snippets accidentally.yas-snippet-dirs
makes a new problem. It doesn't look like there's a good solution, either you take all the snippets, or you get none. I think this is an issue to take up with the elpy developer.elpy-modules
variable and removeelpy-module-yasnippet
from it.