summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-04-21 11:23:21 +0200
committerAlan Pearce2017-04-21 11:23:21 +0200
commit42f48126a24dfadd1a46575c62dd13d4f4d7cc93 (patch)
treeff3820636799f013fc8d85496464bb90b0a5b936 /emacs
parent59de8ca45f6a624663154dbc08fd2808ea30934c (diff)
downloadnixfiles-42f48126a24dfadd1a46575c62dd13d4f4d7cc93.tar.lz
nixfiles-42f48126a24dfadd1a46575c62dd13d4f4d7cc93.tar.zst
nixfiles-42f48126a24dfadd1a46575c62dd13d4f4d7cc93.zip
Emacs: Configure flyspell
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org7
1 files changed, 7 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 44b0a3c7..bd7ee3f2 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -2138,6 +2138,13 @@ I derived a mode for twig, in order to use its =mode-hook=.
                                                  ispell-really-hunspell t)))))
 #+END_SRC
 
+#+BEGIN_SRC emacs-lisp
+(use-package flyspell
+  :config (progn
+            (add-hook 'text-mode-hook (lambda () (flyspell-mode +1)))
+            (add-hook 'prog-mode-hook (lambda () (flyspell-prog-mode +1)))))
+#+END_SRC
+
 * Scripting
 
 Make a shell-script buffer executable after saving it, if it has a shebang.