mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
emacs: Re-enable line wrapping in `notmuch-show-mode'.
Turn on `visual-line-mode' via a hook, so that those who so choose can avoid it.
This commit is contained in:
parent
58d714e5ce
commit
3f003a3ae0
1 changed files with 6 additions and 1 deletions
|
@ -71,9 +71,10 @@ any given message."
|
||||||
"A list of functions called to decorate the headers listed in
|
"A list of functions called to decorate the headers listed in
|
||||||
`notmuch-message-headers'.")
|
`notmuch-message-headers'.")
|
||||||
|
|
||||||
(defcustom notmuch-show-hook nil
|
(defcustom notmuch-show-hook '(notmuch-show-turn-on-visual-line-mode)
|
||||||
"Functions called after populating a `notmuch-show' buffer."
|
"Functions called after populating a `notmuch-show' buffer."
|
||||||
:type 'hook
|
:type 'hook
|
||||||
|
:options '(notmuch-show-turn-on-visual-line-mode)
|
||||||
:group 'notmuch-show
|
:group 'notmuch-show
|
||||||
:group 'notmuch-hooks)
|
:group 'notmuch-hooks)
|
||||||
|
|
||||||
|
@ -133,6 +134,10 @@ indentation."
|
||||||
,@body)
|
,@body)
|
||||||
(kill-buffer buf)))))
|
(kill-buffer buf)))))
|
||||||
|
|
||||||
|
(defun notmuch-show-turn-on-visual-line-mode ()
|
||||||
|
"Enable Visual Line mode."
|
||||||
|
(visual-line-mode t))
|
||||||
|
|
||||||
(defun notmuch-show-view-all-mime-parts ()
|
(defun notmuch-show-view-all-mime-parts ()
|
||||||
"Use external viewers to view all attachments from the current message."
|
"Use external viewers to view all attachments from the current message."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
Loading…
Reference in a new issue