;;; -*- mode: emacs-lisp; coding: utf-8 -*- ;;; ;;; GNUS configuration ;;; ;;; (c) 2009 Mark Wooding ;;; ;;;----- Licensing notice --------------------------------------------------- ;;; ;;; This program is free software; you can redistribute it and/or modify ;;; it under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 2 of the License, or ;;; (at your option) any later version. ;;; ;;; This program is distributed in the hope that it will be useful, ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with this program; if not, write to the Free Software ;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA ;;;-------------------------------------------------------------------------- ;;; General Gnus preferences. ;; Divide the main groups list by topics. (add-hook 'gnus-group-mode-hook 'gnus-topic-mode) (setq gnus-subscribe-newsgroup-method 'gnus-subscribe-topics) ;; Use hacky movemail program to move mail. (setq mail-source-movemail-program "~/bin/movemail-hack") ;; Don't force use of a full window. (setq gnus-use-full-window nil) ;; Display a slrn-like tree view in the summary window. (setq gnus-use-trees nil) (setq gnus-summary-line-format "%U%R%z%4L %(%[%-16,16f%]%): %B %s\n") (setq gnus-sum-thread-tree-root ">" gnus-sum-thread-tree-false-root ">" gnus-sum-thread-tree-single-indent "=" gnus-sum-thread-tree-indent " ") (if (memq (coding-system-get (terminal-coding-system) 'mime-charset) '(nil utf-8)) (setq gnus-sum-thread-tree-leaf-with-other "├─>" gnus-sum-thread-tree-vertical "│ " gnus-sum-thread-tree-single-leaf "╰─>") (setq gnus-sum-thread-tree-leaf-with-other "|->" gnus-sum-thread-tree-vertical "| " gnus-sum-thread-tree-single-leaf "`->")) ;; Sort threads in a useful way. (setq gnus-thread-sort-functions '(gnus-thread-sort-by-number gnus-thread-sort-by-subject gnus-thread-sort-by-total-score)) ;; Use one article buffer per group. (setq gnus-single-article-buffer nil) ;; Don't expand threads on initial opening. (setq gnus-thread-hide-subtree t) ;; Don't use strange icons instead of traditional smileys. (setq gnus-treat-display-smileys nil) ;; Fairly large numbers of articles are OK; don't bother warning me. (setq gnus-large-newsgroup 500) ;; When splitting articles, crossposting is a reasonable thing to do. (setq nnimap-split-crosspost t) ;; We may have the misfortune to talk to an Exchange server. (setq imap-enable-exchange-bug-workaround t) ;; Save articles in mbox format by default, of course, and save an entire ;; batch with the same name. (setq gnus-prompt-before-saving t gnus-default-article-saver 'gnus-summary-save-in-mail) ;; Clean up properly when closing the summary. (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. ;; Fetching news from the local news server seems sensible. (setq gnus-select-method `(nntp ,(mdw-config 'nntp-server))) ;; Now load a local configuration file. (load "~/.gnus-local.el") ;;;----- That's all, folks --------------------------------------------------