summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/emacs/init.el11
-rw-r--r--user/settings/emacs.nix1
2 files changed, 12 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index accc8a5b..948bfa6a 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -942,6 +942,17 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
               :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}\"")))
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index 9e5c09fa..32fb24af 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -118,6 +118,7 @@ in
       feature-mode
       format-all
       flycheck
+      flyspell-correct
       general
       git-gutter-fringe
       git-messenger