dot/gnus.el: Truncate and word-wrap.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 6 Jan 2013 01:29:24 +0000 (01:29 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 6 Jan 2013 01:43:52 +0000 (01:43 +0000)
So many articles are missing newlines nowadays.  Grumble grumble.

dot/gnus.el

index 0cfe467..fbbf626 100644 (file)
 (defadvice gnus-summary-exit (before mdw-kill-debris compile activate)
   (gnus-summary-expand-window))
 
+;; Configure article display a bit.
+(defun mdw-gnus-article-setup ()
+  (setq truncate-lines nil
+       truncate-partial-width-windows nil
+       word-wrap t
+       wrap-prefix (concat (propertize "..." 'face 'mdw-ellipsis-face)
+                           " ")))
+(add-hook 'gnus-article-mode-hook #'mdw-gnus-article-setup)
+
 ;;;--------------------------------------------------------------------------
 ;;; Local configuration.