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
"~/.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!