From: Giorgos Keramidas <keramida@ceid.upatras.gr>
Subject: Re: Configure gnu news
Date: Tue, 24 Jan 2006 03:33:18 +0200 [thread overview]
Message-ID: <86ek2y1kbl.fsf@flame.pc> (raw)
In-Reply-To: mailman.2284.1138063206.26925.help-gnu-emacs@gnu.org
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:
next parent reply other threads:[~2006-01-24 1:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2284.1138063206.26925.help-gnu-emacs@gnu.org>
2006-01-24 1:33 ` Giorgos Keramidas [this message]
2006-01-24 0:35 Configure gnu news Pedro Sá da Costa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86ek2y1kbl.fsf@flame.pc \
--to=keramida@ceid.upatras.gr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).