all repos — nixfiles @ 300a10e626e2bf3dc40863d79fd71c29f603ef32

System and user configuration, managed by nix and home-manager

Emacs: configure flyspell-correct for spellchecking
Alan Pearce alan@alanpearce.eu
Fri, 14 Oct 2022 12:22:13 +0200
commit

300a10e626e2bf3dc40863d79fd71c29f603ef32

parent

77cea049fa4f99cefe4a2db87028d38a33a6781a

2 files changed, 12 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -942,6 +942,17 @@ :fringe-bitmap 'left-vertical-bar               :fringe-face 'flycheck-fringe-info
               :info-list-face 'flycheck-error-list-info)))
 
+(use-package flyspell
+  :ghook 'text-mode-hook
+  :hook (prog-mode . flyspell-prog-mode))
+
+(use-package flyspell-correct
+  :after flyspell
+  :general (:states '(normal insert)
+                    "<f8>" #'flyspell-correct-wrapper))
+(use-package flyspell-correct-avy-menu
+  :after flyspell-correct)
+
 (use-package feature-mode
   :config (progn
             (setq feature-cucumber-command "cucumber-js {options} \"{feature}\"")))
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -118,6 +118,7 @@ eyebrowse       feature-mode
       format-all
       flycheck
+      flyspell-correct
       general
       git-gutter-fringe
       git-messenger