all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Configure gnu news
@ 2006-01-24  0:35 Pedro Sá da Costa
  0 siblings, 0 replies; 2+ messages in thread
From: Pedro Sá da Costa @ 2006-01-24  0:35 UTC (permalink / raw)


What should i put in my dotemacs to configure Gnu News?

Thanks
Pedro

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Configure gnu news
       [not found] <mailman.2284.1138063206.26925.help-gnu-emacs@gnu.org>
@ 2006-01-24  1:33 ` Giorgos Keramidas
  0 siblings, 0 replies; 2+ messages in thread
From: Giorgos Keramidas @ 2006-01-24  1:33 UTC (permalink / raw)


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:

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-24  1:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2284.1138063206.26925.help-gnu-emacs@gnu.org>
2006-01-24  1:33 ` Configure gnu news Giorgos Keramidas
2006-01-24  0:35 Pedro Sá da Costa

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.