Commit b8ddf13bba2c

Vincent Demeester <vincent@sbr.pm>
2015-05-12 15:33:51
Add flyspell configuration
Adding an entry to vde/toggle-map to quickly change dictonary
1 parent 98b090f
Changed files (1)
.emacs.d
.emacs.d/emacs.org
@@ -1556,6 +1556,37 @@
    #+END_SRC
 
 
+** Flyspell
+
+   #+BEGIN_QUOTE
+   Flyspell enables on-the-fly spell checking in Emacs by the means of
+   a minor mode. It is called Flyspell. This facility is hardly
+   intrusive. It requires no help. Flyspell highlights incorrect words
+   as soon as they are completed or as soon as the TextCursor hits a
+   new word.
+   #+END_QUOTE
+
+
+   #+BEGIN_SRC emacs-lisp
+     (use-package flyspell
+       :ensure t
+       :init
+       (progn
+         (use-package flyspell-lazy
+           :ensure t))
+       :config
+       (progn
+         (define-key vde/toggle-map "i" #'ispell-change-dictionary)
+         (setq ispell-program-name "aspell")
+         (setq ispell-local-dictionary "en_US")
+         (setq ispell-local-dictionary-alist
+               '(("en_US" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil nil nil utf-8)
+                 ("fr_FR" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil nil nil utf-8)))
+         (add-hook 'text-mode-hook 'flyspell-mode)
+         (add-hook 'prog-mode-hook 'flyspell-prog-mode)))
+   #+END_SRC
+
+
 ** Flycheck
 
    #+BEGIN_QUOTE