From 24e7011a7233913e670a00df529aa67027ef8b6a Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 11 Jun 2021 23:09:43 -0400 Subject: Enable flyspell-prog-mode even if flyspell hasn't been loaded yet --- init.el | 5 +++-- 1 file 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) -- cgit v1.2.3