summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2021-06-11 23:09:43 -0400
committerKyle Meyer <kyle@kyleam.com>2021-06-12 01:10:42 -0400
commit24e7011a7233913e670a00df529aa67027ef8b6a (patch)
tree097f85f0b877cbce1281f16d13e6d3e08e6ee83b
parent6606f1f4b01275041f0c4acbedce714e0c715d93 (diff)
downloademacs.d-24e7011a7233913e670a00df529aa67027ef8b6a.tar.gz
Enable flyspell-prog-mode even if flyspell hasn't been loaded yet
-rw-r--r--init.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/init.el b/init.el
index b088f18..bf6052d 100644
--- a/init.el
+++ b/init.el
@@ -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)