Activate flyspell-mode in AsciiDoc- and Markdown-modes.

This commit is contained in:
tastytea 2019-07-21 17:39:07 +02:00
parent e831d68127
commit 95ab05c550

View File

@ -1,5 +1,5 @@
;;; init.el --- tastytea's Emacs init file. ;;; init.el --- tastytea's Emacs init file.
;; Time-stamp: <2019-07-21T01:30:35+00:00> ;; Time-stamp: <2019-07-21T15:39:00+00:00>
;;; Commentary: ;;; Commentary:
;; I am using this file with Emacs 26, but most of it will probably work with ;; I am using this file with Emacs 26, but most of it will probably work with
@ -611,6 +611,7 @@ With argument, do this that many times."
(flyspell-buffer))) (flyspell-buffer)))
(defun my/flyspell-german () (defun my/flyspell-german ()
"Set dictionary to german." "Set dictionary to german."
(interactive)
(ispell-change-dictionary "german")) (ispell-change-dictionary "german"))
:bind :bind
("<f6>" . my/toggle-flyspell) ("<f6>" . my/toggle-flyspell)
@ -619,9 +620,11 @@ With argument, do this that many times."
:hook :hook
;; Spellcheck comments. ;; Spellcheck comments.
(prog-mode . flyspell-prog-mode) (prog-mode . flyspell-prog-mode)
;; Spellcheck LaTeX ;; Spellcheck text documents.
(LaTeX-mode . my/flyspell-german) (LaTeX-mode . my/flyspell-german)
(LaTeX-mode . flyspell-mode) (LaTeX-mode . flyspell-mode)
(adoc-mode . flyspell-mode)
(markdown-mode . flyspell-mode)
:mode :mode
("COMMIT_EDITMSG\\'" . flyspell-mode) ("COMMIT_EDITMSG\\'" . flyspell-mode)
))) )))