Skip to content

Commit

Permalink
Fix prog-mode flyspell regression
Browse files Browse the repository at this point in the history
  • Loading branch information
themkat committed Nov 6, 2024
1 parent 9d3ea8f commit a31631f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions init.org
Original file line number Diff line number Diff line change
Expand Up @@ -692,11 +692,13 @@ Acivate spell checking for some relevant modes, set some preferred languages and
;; FlySpell (spell checking)
(dolist (flyspellmodes '(text-mode-hook
org-mode-hook
latex-mode-hook
;; strings in code
prog-mode-hook))
latex-mode-hook))
(add-hook flyspellmodes 'turn-on-flyspell))

;; strings in code
(add-hook 'prog-mode
'flyspell-prog-mode)

;; sets american english as defult
(setq ispell-dictionary "american"
ispell-program-name "aspell")
Expand Down Expand Up @@ -873,7 +875,9 @@ Recently started experimenting more with Rust. rustic seems to be the best packa
(lsp-rust-all-features t)

:hook
(rustic-mode . yas-minor-mode))
((rustic-mode . yas-minor-mode)
;; keeping it here due to flyspell being built in, and prog-mode hook not activating it
(rustic-mode . flyspell-prog-mode)))
#+END_SRC


Expand Down

0 comments on commit a31631f

Please sign in to comment.