From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: Configure gnu news Date: Tue, 24 Jan 2006 03:33:18 +0200 Organization: SunSITE.dk - Supporting Open source Message-ID: <86ek2y1kbl.fsf@flame.pc> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1138066936 8811 80.91.229.2 (24 Jan 2006 01:42:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Jan 2006 01:42:16 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 24 02:42:08 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F1DC5-0000GS-KT for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Jan 2006 02:42:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F1DEa-0005VK-2M for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Jan 2006 20:44:36 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news0.de.colt.net!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!news.net.uni-c.dk!dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) Cancel-Lock: sha1:MLrQSO9t5xN8V2Vq9HGfz3C71Mk= Original-Lines: 87 Original-NNTP-Posting-Host: 81.186.70.214 Original-X-Trace: news.sunsite.dk DXC=:eRUE@44ikiVPh8EAZ[i2lYSB=nbEKnkk85kNb4aL^MjgX7f^UIZ@YZi^TH0j7EeKDg?XQ]=P?nE]f Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:137184 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32806 Archived-At: On Tue, 24 Jan 2006 00:35:49 +0000, Pedro Sá da Costa wrote: > What should i put in my dotemacs to configure Gnu News? I prefer putting the Gnus related options in `~/.gnus' myself. This way all the News relaated stuff is kept separate from the main, editing Emacs options. The minimum .gnus file that you can use looks probably like this: (setq gnus-nntp-server "news.server.name") (setq gnus-select-method '(nntp "news.server.name")) (setq gnus-secondary-select-methods nil) My own startup file has a few more options, but feel free to copy anything you find useful: ;;; Gnus startup file. ;;; $GKER: dotfiles/freebsd/amd64/flame/dot.gnus,v 1.12 2006/01/04 13:48:04 keramida Exp $ ;; Default news source. (setq gnus-nntp-server "news.server.name") (setq gnus-select-method '(nntp "news.server.name")) ;; Set this to non-nil to authenticate to the NNTP server, using the ;; `~/.authinfo' file. See the manual of Gnus for details about the ;; format of accounts listed in the `.authinfo' file. ;(setq nntp-authinfo-function 'nntp-send-authinfo) ;; No mail reading with Gnus (yet). (setq gnus-secondary-select-methods nil) ;; Where to save a copy of all outgoing messages. (setq gnus-message-archive-group "posted") ;; Save outgoing messages as 'read' by default. (setq gnus-gcc-mark-as-read t) ;; Where my global score rules are saved. (setq gnus-home-score-file (concat gnus-home-directory ".gnus/scorefile") ;; Display and index buffer formats. (setq gnus-group-line-format "%M%S%8y: %G\n") (setq gnus-summary-line-format "%U%R%z%d %I%(%[%4L: %-20,20n%]%) %S\n") ;; Message reply & followup citation line format. (defun gker-message-insert-citation-line () "Insert a simple citation line." (when message-reply-headers (insert "On " (mail-header-date message-reply-headers) ", " (mail-header-from message-reply-headers) " wrote:") (newline))) ;; Bind my own citation line function, thus enabling it. (setq message-citation-line-function 'gker-message-insert-citation-line) ;; Prompt just once before saving many articles. (setq gnus-prompt-before-saving t) ;; How to save articles, by default. (setq gnus-default-article-saver 'gnus-summary-save-in-mail gnus-mail-save-name 'gnus-plain-save-name) ;; Use alt.foo.bar style names for folders (setq gnus-use-long-file-name t) (setq gnus-suppress-duplicates t) ;; When entering a folder, don't automagically select the first message ;; and show it in an article buffer. (setq gnus-autoselect-first nil) ;; The headers that are shown for messages or news-articles. (setq gnus-visible-headers '("^From:" "^Date:" "^Subject:" "^To:" "^Cc:" "^Followup-To:" "^Reply-To:" "^Newsgroups:" "^Message-Id:")) ;; The order of headers shown in article buffers. (setq gnus-sorted-header-list '("^Date:" "^From:" "^Reply-To:" "^Followup-To:" "^Subject:" "^To:" "^Cc:" "^Newsgroups:" "^Message-Id:")) ;;; Local variables: ;;; mode: emacs-lisp ;;; End: