emacs.d/layers/+checkers/spell-checking/config.el the first line sets
t. At first I set this to
nil, but I don't think setting it here is the most spacematic way of going about it.
What I did instead is add
;; disable flyspell-mode
(setq-default spell-checking-enable-by-default nil)
dotspacemacs/user-init function in
I first tried to add it to
dotspacemacs/user-config, but it did not take effect. The fact that it works in
user-init is not intuitive to me: since
user-init is loaded "before layer configuration", I would think that
spell-checking-enable-by-default is set to
user-init, then set back to
config.el is run. It's also confusing because
defvar, which I understand to mean the variable
spell-checking-enable-by-default is created and set in that
config.el. If that's true, how can I set it before it's created, in
user-init. If anyone can explain this in a comment that'd be great!
Any confirmation that this is the best practice is appreciated.