summary refs log tree commit diff
path: root/configs/rcs
diff options
context:
space:
mode:
authorFranck Cuny <fcuny@twitter.com>2018-09-22 15:37:31 -0700
committerFranck Cuny <fcuny@twitter.com>2018-09-22 15:37:31 -0700
commit24e452c244d5963fc9f14cb702401217c18f1219 (patch)
treedd505e612ee208fb828047a24949822e90bef0d2 /configs/rcs
parent[emacs] group things in the configuration (diff)
downloademacs.d-24e452c244d5963fc9f14cb702401217c18f1219.tar.gz
[emacs] a few updates to flyspell configuration
Diffstat (limited to 'configs/rcs')
-rw-r--r--configs/rcs/emacs.d/init.el14
1 files changed, 11 insertions, 3 deletions
diff --git a/configs/rcs/emacs.d/init.el b/configs/rcs/emacs.d/init.el
index cce1320..945c07e 100644
--- a/configs/rcs/emacs.d/init.el
+++ b/configs/rcs/emacs.d/init.el
@@ -199,7 +199,15 @@
           ispell-list-command "--list")))
 
 (use-package flyspell-correct
-  :after (flyspell))
+  :after (flyspell)
+  :commands (flyspell-correct-word-generic
+	     flyspell-correct-previous-word-generic)
+  :bind (:map flyspell-mode-map
+	      ("C-;" . flyspell-correct-previous-word-generic)))
+
+(use-package flyspell-correct-ivy
+  :commands (flyspell-correct-ivy)
+  :init (setq flyspell-correct-interface #'flyspell-correct-ivy))
 
 (use-package whitespace
   :custom
@@ -223,8 +231,9 @@
 (use-package magit
   :after (flyspell)
   :hook ((magit-mode . hl-line-mode))
-  :bind (("C-x g" . magit-status))
+  :bind (("C-x g s" . magit-status))
   :config
+  (setq magit-completing-read-function 'ivy-completing-read)
   (setq git-commit-summary-max-length 50)
   (setq git-commit-fill-column 72)
   (setq git-commit-turn-on-auto-fill t))
@@ -250,7 +259,6 @@
     (counsel-projectile-mode)))
 
 (use-package projectile
-  :diminish projectile-mode
   :bind-keymap ("C-c p" . projectile-command-map)
   :init
   (add-hook 'after-init-hook #'projectile-mode)