summary refs log tree commit diff
path: root/emacs.d/modules
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2018-04-08 16:28:22 -0700
committerFranck Cuny <franck.cuny@gmail.com>2018-04-08 16:28:22 -0700
commit54251d877632d19d098c0cd08735c964eaaeb4ae (patch)
treed18bd727529288ea1b474c62836c69986e82b2f4 /emacs.d/modules
parent[tmux] Add tmux again. (diff)
downloademacs.d-54251d877632d19d098c0cd08735c964eaaeb4ae.tar.gz
[emacs] Rename some custom variables.
Use '-' as a separator instead of '/' in some variable's names.
Diffstat (limited to 'emacs.d/modules')
-rw-r--r--emacs.d/modules/module-flyspell.el23
-rw-r--r--emacs.d/modules/module-pants.el4
2 files changed, 15 insertions, 12 deletions
diff --git a/emacs.d/modules/module-flyspell.el b/emacs.d/modules/module-flyspell.el
index ade45ee..e95ab1e 100644
--- a/emacs.d/modules/module-flyspell.el
+++ b/emacs.d/modules/module-flyspell.el
@@ -1,17 +1,20 @@
 (require 'config-package)
 
-;; check the spelling
+(use-package ispell
+  :config
+  (setq ispell-program-name "aspell"
+        ispell-list-command "--list"))
+
+(use-package flyspell-correct-ivy
+  :bind
+  (:map flyspell-mode-map
+        ("C-;" . flyspell-correct-previous-word-generic)))
+
 (use-package flyspell
+  :commands (spell-checking/change-dictionary)
   :init
-  (use-package ispell
-    :ensure t
-    :config
-    (setq ispell-program-name "aspell"
-          ispell-list-command "--list"))
-  (use-package flyspell-popup
-    :ensure t
-    :bind ("C-:" . flyspell-popup-correct))
   :config
-  (add-hook 'text-mode-hook 'flyspell-mode))
+  (add-hook 'text-mode-hook 'flyspell-mode)
+  (add-hook 'prog-mode-hook 'flyspell-prog-mode))
 
 (provide 'module-flyspell)
diff --git a/emacs.d/modules/module-pants.el b/emacs.d/modules/module-pants.el
index 5a7abbb..f1027bb 100644
--- a/emacs.d/modules/module-pants.el
+++ b/emacs.d/modules/module-pants.el
@@ -1,11 +1,11 @@
 (require 'config-package)
 
 (use-package pants
-  :load-path (lambda () (expand-file-name  "github.com/fcuny/pants.el/" fcuny/workspace))
+  :load-path (lambda () (expand-file-name  "github.com/fcuny/pants.el/" fcuny-path-workspace))
 
   :config
   (setq pants-completion-system 'ivy
-        pants-source-tree-root (expand-file-name "git.twitter.biz/source" fcuny/workspace)
+        pants-source-tree-root (expand-file-name "git.twitter.biz/source" fcuny-path-workspace)
         pants-bury-compilation-buffer t
         pants-extra-args "-q")