Activate flyspell-mode in AsciiDoc- and Markdown-modes.
This commit is contained in:
parent
e831d68127
commit
95ab05c550
7
init.el
7
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
|
||||
("<f6>" . 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)
|
||||
)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user