]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Truncate lines and do not enable visual-line-mode in notmuch-show buffers.
authorDavid Edmondson <dme@dme.org>
Mon, 16 Jan 2012 14:13:22 +0000 (14:13 +0000)
committerDavid Bremner <bremner@debian.org>
Sat, 21 Jan 2012 12:22:27 +0000 (08:22 -0400)
Enable the truncation of lines in `notmuch-show-mode' to avoid visual
noise caused by the wrapping of the header lines.

Don't enable `visual-line-mode' because it disables line truncation.

The benefits of `visual-line-mode' were that it wrapped long lines
in received messages. With `notmuch-wash-wrap-long-lines' now default
behaviour, this is no longer required.

emacs/notmuch-show.el

index 92d3811c995b1b17bc2e92c0c011a911211255ff..fbf3f9bba1c6940e6dab8081356a051e70490791 100644 (file)
@@ -879,9 +879,6 @@ buffer."
 
       (jit-lock-register #'notmuch-show-buttonise-links)
 
 
       (jit-lock-register #'notmuch-show-buttonise-links)
 
-      ;; Act on visual lines rather than logical lines.
-      (visual-line-mode t)
-
       (run-hooks 'notmuch-show-hook))
 
     ;; Move straight to the first open message
       (run-hooks 'notmuch-show-hook))
 
     ;; Move straight to the first open message
@@ -993,7 +990,8 @@ All currently available key bindings:
   (use-local-map notmuch-show-mode-map)
   (setq major-mode 'notmuch-show-mode
        mode-name "notmuch-show")
   (use-local-map notmuch-show-mode-map)
   (setq major-mode 'notmuch-show-mode
        mode-name "notmuch-show")
-  (setq buffer-read-only t))
+  (setq buffer-read-only t
+       truncate-lines t))
 
 (defun notmuch-show-move-to-message-top ()
   (goto-char (notmuch-show-message-top)))
 
 (defun notmuch-show-move-to-message-top ()
   (goto-char (notmuch-show-message-top)))