home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 4912af61d9c31061aaa81004d5486f26638bbbc6
parent f7436376b7e8bbdb711ab151ac07c3b41f21e575
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Tue,  7 Apr 2020 16:09:10 +0200

config-editing.el: update flyspell configuration

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-editing.el | 40++++++++++++++++++----------------------
1 file changed, 18 insertions(+), 22 deletions(-)

diff --git a/tools/emacs/config/config-editing.el b/tools/emacs/config/config-editing.el @@ -148,31 +148,27 @@ Else toggle the comment status of the line at point." ("M-;" . comment-indent) ("C-x C-;" . comment-box))) +;; UseFlySpell (use-package flyspell - :init - (setq flyspell-issue-message-flag nil) - (setq flyspell-issue-welcome-flag nil) - (setq ispell-program-name "hunspell") - (setq ispell-local-dictionary "en_GB") - (setq ispell-local-dictionary-alist - '(("en_GB" - "[[:alpha:]]" - "[^[:alpha:]]" - "[']" - nil - ("-d" "en_GB,fr_FR") - nil - utf-8))) + :commands (flyspell-prog-mode flyspell-mode) + :hook((text-mode . turn-on-flyspell) + (prog-mode . turn-on-flyspell)) :config (define-key flyspell-mode-map (kbd "C-;") nil) - :hook - (text-mode . turn-on-flyspell) - (prog-mode . turn-off-flyspell)) - -(use-package flyspell-correct-ivy - :after flyspell - :bind (:map flyspell-mode-map - ([remap flyspell-correct-word-before-point] . flyspell-correct-previous-word-generic))) + (setq-default flyspell-issue-message-flag nil + flyspell-issue-welcome-flag nil + ispell-program-name "hunspell" + ispell-local-dictionary "en_GB" + ispell-local-dictionary-alist + '(("en_GB" + "[[:alpha:]]" + "[^[:alpha:]]" + "[']" + nil + ("-d" "en_GB,fr_FR") + nil + utf-8)))) +;; -UseFlySpell (use-package emacs :init