mu4e-view-mode-hook))
(add-hook hook (lambda () (visual-line-mode 1))))
#+end_src
+** Auto fill mode
+#+begin_src emacs-lisp
+ (dolist (hook '(scdoc-mode-hook
+ mu4e-compose-mode-hook))
+ (add-hook hook (lambda () (auto-fill-mode 1))))
+#+end_src
** Display number of matches in search
#+begin_src emacs-lisp
(use-package anzu
:query "maildir:\"/personal/INBOX\" or maildir:\"/school/INBOX\""
:key ?b))
:hook ((mu4e-compose-mode . flyspell-mode)
- (mu4e-compose-mode . auto-fill-mode)
(message-send-hook . (lambda () (unless (yes-or-no-p "Ya sure 'bout that?")
(signal 'quit nil))))))
#+end_src
** Spell checking
Spell check in text mode, and in prog-mode comments.
#+begin_src emacs-lisp
- (dolist (hook '(text-mode-hook))
+ (dolist (hook '(text-mode-hook
+ markdown-mode-hook
+ scdoc-mode-hook))
(add-hook hook (lambda () (flyspell-mode))))
(dolist (hook '(change-log-mode-hook log-edit-mode-hook))
(add-hook hook (lambda () (flyspell-mode -1))))