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) )))