summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)