help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Configure gnu news


From: Giorgos Keramidas
Subject: Re: Configure gnu news
Date: Tue, 24 Jan 2006 03:33:18 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix)

On Tue, 24 Jan 2006 00:35:49 +0000, Pedro Sá da Costa 
<op132650c@mail.telepac.pt> 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:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]