summaryrefslogtreecommitdiffstats
path: root/.emacs.d/site-lisp
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-12-12 01:09:54 +0100
committerGravatar Tom Willemse2013-12-12 01:09:54 +0100
commit980a124633e159dc53567ab1e7520bdf1f96c3b5 (patch)
tree7e8460c675362ad9217215352992ecee8b04ff0e /.emacs.d/site-lisp
parent6fd6f8b53b505ce7b959b96ad5fbeb1d9a344090 (diff)
downloademacs-980a124633e159dc53567ab1e7520bdf1f96c3b5.tar.gz
emacs-980a124633e159dc53567ab1e7520bdf1f96c3b5.zip
Improve look of summary buffer in gnus
Diffstat (limited to '.emacs.d/site-lisp')
-rw-r--r--.emacs.d/site-lisp/gnus-init.el25
1 files changed, 14 insertions, 11 deletions
diff --git a/.emacs.d/site-lisp/gnus-init.el b/.emacs.d/site-lisp/gnus-init.el
index 65fe278..42f5469 100644
--- a/.emacs.d/site-lisp/gnus-init.el
+++ b/.emacs.d/site-lisp/gnus-init.el
@@ -35,23 +35,26 @@
" "))))
(defun gnus-user-format-function-b (headers)
- (let ((to (gnus-extra-header 'To headers))
- (cc (gnus-extra-header 'Cc headers)))
- (or (and to
- (catch 'newsgroup
- (maphash (lambda (key val)
- (when (or (string-match key to)
- (string-match key cc))
- (throw 'newsgroup val)))
- gnus-init-subscribed-lists)))
- (gnus-summary-from-or-to-or-newsgroups headers gnus-tmp-from))))
+ (let* ((to (gnus-extra-header 'To headers))
+ (cc (gnus-extra-header 'Cc headers))
+ (group (catch 'newsgroup
+ (maphash (lambda (key val)
+ (when (or (string-match key to)
+ (string-match key cc))
+ (throw 'newsgroup val)))
+ gnus-init-subscribed-lists))))
+ (or (and to group) "")))
(setq gnus-ignored-from-addresses oni:mail-adresses)
(setq message-alternative-emails oni:mail-adresses)
(setq message-dont-reply-to-names oni:mail-adresses)
+(defvar gnus-face-5 'font-lock-variable-name-face)
+(defvar gnus-face-6 'font-lock-constant-face)
+
(setq gnus-group-line-format "%P %(%C%) %B%60=%4y%-2M%S\n")
-(setq gnus-summary-line-format "%U%R%z%ua%I%(%*%[%-23,23ub%]%) %s\n")
+(setq gnus-summary-line-format
+ "%U%R%z%ua%I%(%*%[%5{%-23,23f%}%]%) %s%-115=%6{%21,21ub%}\n")
(setq gnus-select-method '(nntp "news.gmane.org"))
(setq gnus-secondary-select-methods
'((nnmaildir "gmail"