How can I selectively enable spell checking?
Previously I had the same issue as this question and disabled spell checking globally. But now I can't seem to enable it back on buffers that I need it, like org and latex.
I've tried adding (flyspell-mode-on)
to the mode hooks, to no effect.
(add-hook 'org-mode-hook
(lambda ()
;...
(flyspell-mode-on)
;...
))
Calling it interactively on the buffer seems to work, though.
layer configuration:
(defun dotspacemacs/layers ()
"Layer configuration:
This function should only modify configuration layer settings."
(setq-default
;...
;; List of configuration layers to load.
dotspacemacs-configuration-layers
'(
;...
(spell-checking :variables
spell-checking-enable-by-default nil
spell-checking-enable-auto-dictionary t)
))
I'm using spacemacs 0.999.0 (develop head) @ emacs 27.1