Commit d2cae94b4139

Vincent Demeester <vincent@sbr.pm>
2020-09-25 13:29:57
Revert "tools/emacs: temporary remove flyspell 👾"
This reverts commit 410551b36b4a29ab4a2f5c4066f232307cbce01e. Let's use flyspell-prog-mode instead.
1 parent 410551b
Changed files (1)
tools
emacs
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