From 24e452c244d5963fc9f14cb702401217c18f1219 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 22 Sep 2018 15:37:31 -0700 Subject: [emacs] a few updates to flyspell configuration --- configs/rcs/emacs.d/init.el | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'configs/rcs/emacs.d/init.el') 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) -- cgit 1.4.1