commit d2cae94b4139149410834df47ed7daf76f346647 parent 410551b36b4a29ab4a2f5c4066f232307cbce01e Author: Vincent Demeester <vincent@sbr.pm> Date: Fri, 25 Sep 2020 12:29:57 +0100 Revert "tools/emacs: temporary remove flyspell 👾" This reverts commit 410551b36b4a29ab4a2f5c4066f232307cbce01e. Let's use flyspell-prog-mode instead. Diffstat:
M | tools/emacs/config/config-editing.el | | | 22 | ++++++++++++++++++++++ |
1 file changed, 22 insertions(+), 0 deletions(-)
diff --git a/tools/emacs/config/config-editing.el b/tools/emacs/config/config-editing.el @@ -158,6 +158,28 @@ Else toggle the comment status of the line at point." ("M-;" . comment-indent) ("C-x C-;" . comment-box))) +;; UseFlySpell +(use-package flyspell + :commands (flyspell-prog-mode flyspell-mode) + :hook((text-mode . flyspell-mode) + (prog-mode . flyspell-prog-mode)) + :config + (define-key flyspell-mode-map (kbd "C-;") nil) + (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 (setq-default tab-always-indent 'complete