From 95ab05c550f7bfee7b11ed6ef6b859a5c1a53ad2 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 21 Jul 2019 17:39:07 +0200 Subject: [PATCH] Activate flyspell-mode in AsciiDoc- and Markdown-modes. --- init.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 143bea0..99101c8 100644 --- a/init.el +++ b/init.el @@ -1,5 +1,5 @@ ;;; 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: ;; 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))) (defun my/flyspell-german () "Set dictionary to german." + (interactive) (ispell-change-dictionary "german")) :bind ("" . my/toggle-flyspell) @@ -619,9 +620,11 @@ With argument, do this that many times." :hook ;; Spellcheck comments. (prog-mode . flyspell-prog-mode) - ;; Spellcheck LaTeX + ;; Spellcheck text documents. (LaTeX-mode . my/flyspell-german) (LaTeX-mode . flyspell-mode) + (adoc-mode . flyspell-mode) + (markdown-mode . flyspell-mode) :mode ("COMMIT_EDITMSG\\'" . flyspell-mode) )))