summary refs log tree commit diff
path: root/emacs.d/core/core-flyspell.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.d/core/core-flyspell.el')
-rw-r--r--emacs.d/core/core-flyspell.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/emacs.d/core/core-flyspell.el b/emacs.d/core/core-flyspell.el
new file mode 100644
index 0000000..7c61b49
--- /dev/null
+++ b/emacs.d/core/core-flyspell.el
@@ -0,0 +1,11 @@
+(use-package flyspell
+  :ensure t
+  :defer t
+  :init
+  (progn
+    (setq ispell-program-name "aspell"
+          ispell-list-command "--list")
+    (add-hook 'prog-mode-hook 'flyspell-prog-mode)
+    (add-hook 'text-mode-hook 'turn-on-flyspell)))
+
+(provide 'core-flyspell)