Variable: gnus-select-method

gnus-select-method is a customizable variable defined in gnus.el.gz.

Value

(nntp "news")

Documentation

Default method for selecting a newsgroup.

This variable should be a list, where the first element is how the news is to be fetched, the second is the address.

For instance, if you want to get your news via "flab.flab.edu" using NNTP, you could say:

(setq gnus-select-method '(nntp "flab.flab.edu"))

If you want to use your local spool, say:

(setq gnus-select-method (list 'nnspool (system-name)))

If you use this variable, you must set gnus-nntp-server to nil.

There is a lot more to know about select methods and virtual servers - see the manual for details.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/gnus.el.gz
;; `M-x customize-variable RET gnus-select-method RET' should work without
;; starting or even loading Gnus.
;;;###autoload(custom-autoload 'gnus-select-method "gnus")

(defcustom gnus-select-method
  (list 'nntp (or (gnus-getenv-nntpserver)
                  (when (and gnus-default-nntp-server
                             (not (string= gnus-default-nntp-server "")))
                    gnus-default-nntp-server)
                  "news"))
  "Default method for selecting a newsgroup.
This variable should be a list, where the first element is how the
news is to be fetched, the second is the address.

For instance, if you want to get your news via \"flab.flab.edu\" using
NNTP, you could say:

\(setq gnus-select-method \\='(nntp \"flab.flab.edu\"))

If you want to use your local spool, say:

\(setq gnus-select-method (list \\='nnspool (system-name)))

If you use this variable, you must set `gnus-nntp-server' to nil.

There is a lot more to know about select methods and virtual servers -
see the manual for details."
  ;; Emacs has set-after since 22.1.
  ;set-after '(gnus-default-nntp-server)
  :group 'gnus-server
  :group 'gnus-start
  :initialize 'custom-initialize-default
  :type 'gnus-select-method)