diff options
author | Kyle Meyer <kyle@kyleam.com> | 2021-06-11 23:09:43 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2021-06-12 01:10:42 -0400 |
commit | 24e7011a7233913e670a00df529aa67027ef8b6a (patch) | |
tree | 097f85f0b877cbce1281f16d13e6d3e08e6ee83b | |
parent | 6606f1f4b01275041f0c4acbedce714e0c715d93 (diff) | |
download | emacs.d-24e7011a7233913e670a00df529aa67027ef8b6a.tar.gz |
Enable flyspell-prog-mode even if flyspell hasn't been loaded yet
-rw-r--r-- | init.el | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1663,10 +1663,11 @@ (use-package flyspell :diminish (flyspell-mode . "Fy") + :init + (add-hook 'prog-mode-hook #'flyspell-prog-mode) :config (setq flyspell-auto-correct-binding (kbd "C-c e ;")) - (define-key flyspell-mode-map (kbd "C-.") nil) - (add-hook 'prog-mode-hook 'flyspell-prog-mode)) + (define-key flyspell-mode-map (kbd "C-.") nil)) (use-package tex-site :mode ("\\.[tT]e[xX]\\'" . TeX-latex-mode) |