diff options
author | Alan Pearce | 2022-10-14 12:22:13 +0200 |
---|---|---|
committer | Alan Pearce | 2022-10-16 23:50:03 +0200 |
commit | 300a10e626e2bf3dc40863d79fd71c29f603ef32 (patch) | |
tree | 79d2387875deb36f89bead6f8ef4c7f568ee023b | |
parent | 77cea049fa4f99cefe4a2db87028d38a33a6781a (diff) | |
download | nixfiles-300a10e626e2bf3dc40863d79fd71c29f603ef32.tar.lz nixfiles-300a10e626e2bf3dc40863d79fd71c29f603ef32.tar.zst nixfiles-300a10e626e2bf3dc40863d79fd71c29f603ef32.zip |
Emacs: configure flyspell-correct for spellchecking
-rw-r--r-- | user/emacs/init.el | 11 | ||||
-rw-r--r-- | user/settings/emacs.nix | 1 |
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 |