diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-08-09 15:42:54 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-08-09 15:42:54 +0100 |
commit | 96f1e8d7bb158e3040bf67489536c4276b3a27c7 (patch) | |
tree | 33c75998e2ef0292638493e7c9b9a5eae601bfa2 | |
parent | 56625a6cf83c28fb9dd89cd140afb6b89aae3e6f (diff) | |
download | dotfiles-96f1e8d7bb158e3040bf67489536c4276b3a27c7.tar.gz dotfiles-96f1e8d7bb158e3040bf67489536c4276b3a27c7.tar.bz2 dotfiles-96f1e8d7bb158e3040bf67489536c4276b3a27c7.zip |
~moved flyspell to major modes and programming section
Doesn't make sense to limit it just to Org mode, so add hooks for text mode.
-rw-r--r-- | Emacs/.config/emacs/config.org | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 909ea59..448173d 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -721,15 +721,7 @@ better than the default asterisks. (use-package org-superstar :hook (org-mode . org-superstar-mode)) #+END_SRC -** Flyspell -#+BEGIN_SRC emacs-lisp -(use-package flyspell - :hook (org-mode . flyspell-mode)) -(use-package flyspell-correct-ivy - :after flyspell - :bind (:map org-mode-map - ("C-c C-a" . flyspell-correct-at-point))) #+END_SRC * Window management Window management is really important. I find the default window @@ -1001,3 +993,21 @@ 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 |