summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2018-07-06 16:03:10 -0700
committerFranck Cuny <franck.cuny@gmail.com>2018-07-06 16:03:10 -0700
commit8f3b3ba70fee1d5139654b633e92aabc2b6c8f3d (patch)
tree373196513e9babe82f670cf63803b2ac057be227
parent[emacs] Forgot to add the serializer config. (diff)
downloademacs.d-8f3b3ba70fee1d5139654b633e92aabc2b6c8f3d.tar.gz
[emacs] All spelling configs in one place.
-rw-r--r--emacs.d/config/fcuny-editor.el8
-rw-r--r--emacs.d/config/fcuny-flyspell.el9
-rw-r--r--emacs.d/config/fcuny-spell.el19
-rw-r--r--emacs.d/init.el2
4 files changed, 20 insertions, 18 deletions
diff --git a/emacs.d/config/fcuny-editor.el b/emacs.d/config/fcuny-editor.el
index 75baa4f..d4dedc5 100644
--- a/emacs.d/config/fcuny-editor.el
+++ b/emacs.d/config/fcuny-editor.el
@@ -44,12 +44,4 @@
   (show-trailing-whitespace t)
   :hook (whitespace-mode))
 
-(use-package ispell
-  :ensure t
-  :config
-  (use-package flyspell-correct-ivy :ensure t)
-  (when (executable-find "aspell")
-    (setq ispell-program-name "aspell"
-          ispell-list-command "--list")))
-
 (provide 'fcuny-editor)
diff --git a/emacs.d/config/fcuny-flyspell.el b/emacs.d/config/fcuny-flyspell.el
deleted file mode 100644
index fe26768..0000000
--- a/emacs.d/config/fcuny-flyspell.el
+++ /dev/null
@@ -1,9 +0,0 @@
-(eval-when-compile
-  (require 'use-package))
-
-(use-package flyspell
-  :ensure t
-  :hook ((text-mode-hook . flyspell-mode)
-         (prog-mode-hook . flyspell-prog-mode)))
-
-(provide 'fcuny-flyspell)
diff --git a/emacs.d/config/fcuny-spell.el b/emacs.d/config/fcuny-spell.el
new file mode 100644
index 0000000..a6c2980
--- /dev/null
+++ b/emacs.d/config/fcuny-spell.el
@@ -0,0 +1,19 @@
+(eval-when-compile
+  (require 'use-package))
+
+(use-package ispell
+  :ensure t
+  :config
+  (when (executable-find "aspell")
+    (setq ispell-program-name "aspell"
+          ispell-list-command "--list")))
+
+(use-package flyspell-correct
+  :ensure t)
+
+(use-package flyspell
+  :ensure t
+  :hook ((text-mode-hook . flyspell-mode)
+         (prog-mode-hook . flyspell-prog-mode)))
+
+(provide 'fcuny-spell)
diff --git a/emacs.d/init.el b/emacs.d/init.el
index 572ad53..f6989df 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -33,6 +33,7 @@
 (use-package fcuny-darwin)
 
 (use-package fcuny-editor)
+(use-package fcuny-spell)
 (use-package fcuny-paren)
 (use-package fcuny-ibuffer)
 (use-package fcuny-dired)
@@ -41,7 +42,6 @@
 (use-package fcuny-company)
 (use-package fcuny-magit)
 (use-package fcuny-pants)
-(use-package fcuny-flyspell)
 
 (use-package fcuny-elisp)
 (use-package fcuny-go)