~moved flyspell

This commit is contained in:
2020-08-09 17:22:33 +01:00
parent 1cca162c8a
commit b7129e5441

View File

@@ -1049,21 +1049,3 @@ Lisp function does not specify a special indentation."
(funcall method indent-point state))))))))
(add-hook 'emacs-lisp-mode-hook #'(lambda () (interactive) (setq-local lisp-indent-function #'+modded/lisp-indent-function))))
#+END_SRC
** Flyspell
Flyspell allows me to quickly spell check text documents. I use
flyspell primarily in org mode, as that is my preferred prose writing
software, but I also need it in commit messages and so on. So
flyspell-mode should be hooked to text-mode.
#+BEGIN_SRC emacs-lisp
(use-package flyspell
:hook (text-mode . flyspell-mode)
#+END_SRC
As I use ivy I'd like the flyspell correct interface (which allow for
corrections to real words) to use ivy.
#+BEGIN_SRC emacs-lisp
(use-package flyspell-correct-ivy
:after flyspell
:bind (:map org-mode-map
("C-c C-a" . flyspell-correct-at-point)))
#+END_SRC