aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs
diff options
context:
space:
mode:
authorGravatar David Edmondson <dme@dme.org>2012-01-26 08:17:50 +0000
committerGravatar David Bremner <bremner@debian.org>2012-01-27 07:48:06 -0400
commit3f003a3ae0ee800cbbae7ac1daa72b3be55f9d83 (patch)
tree1c53ac297d02aec0401fb797358672323c0efd11 /emacs
parent58d714e5ced2b6d16dcbd91589715e5ec52c97b4 (diff)
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.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch-show.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index c37479a5..94d94ed2 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -71,9 +71,10 @@ any given message."
"A list of functions called to decorate the headers listed in
`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."
:type 'hook
+ :options '(notmuch-show-turn-on-visual-line-mode)
:group 'notmuch-show
:group 'notmuch-hooks)
@@ -133,6 +134,10 @@ indentation."
,@body)
(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 ()
"Use external viewers to view all attachments from the current message."
(interactive)