summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2016-11-08 09:05:33 -0800
committerFranck Cuny <franck.cuny@gmail.com>2016-11-08 09:05:33 -0800
commit84e98aeae9a283fd1e21f2a5af08562e21dcd3fa (patch)
tree6fadd4c5fb85254ccfde73f1f18de5ef4a9a9255
parentRevert "[tmux] remove it (again)" (diff)
downloademacs.d-84e98aeae9a283fd1e21f2a5af08562e21dcd3fa.tar.gz
[Emacs] A few more settings for flyspell.
Use ivy to suggest words.
-rw-r--r--emacs.d/init.el12
1 files changed, 9 insertions, 3 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el
index 1da46db..26cde75 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -167,10 +167,16 @@
 
 (use-package flyspell
   :ensure t
-  :diminish flyspell-mode
+  :diminish ""
   :init
-  (setq ispell-program-name "aspell"
-        ispell-list-command "--list"))
+  (progn
+    (setq ispell-program-name "aspell"
+          ispell-list-command "--list")
+    (add-hook 'text-mode-hook 'flyspell-mode))
+  :config
+  (use-package flyspell-correct-ivy
+      :ensure t
+      :bind ("C-:" . flyspell-correct-word-generic)))
 
 (use-package geiser
   :ensure t