From d11f50a7a66ecfbf783b1885aaa41da6dc25c2a9 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Wed, 7 Sep 2022 08:56:28 -0400 Subject: Spell check support for text files --- README.md | 5 +++++ lisp/text.el | 2 ++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 2162052..9db83b4 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,8 @@ Emacs configuration file ### JavaScript/TypeScript Must have installed the Typescript language server: https://github.com/typescript-language-server/typescript-language-server +### Text +`hunspell` is used to provide spell check on `.txt` files. Make sure to have install the hunspell package for your language. In my instance, I had to do: +```sh +sudo pacman -S hunspell hunspell-en_us +``` diff --git a/lisp/text.el b/lisp/text.el index 4e7c410..5e67c39 100644 --- a/lisp/text.el +++ b/lisp/text.el @@ -3,6 +3,8 @@ (defun setup-text-mode () "Disable word wrap in text mode." (setq word-wrap t) + (require 'flyspell) + (flyspell-mode 1) ) (add-hook 'text-mode-hook 'setup-text-mode) -- cgit v1.2.1