Variable: gnus-select-group-hook

gnus-select-group-hook is a customizable variable defined in gnus-sum.el.gz.

Value

nil

Documentation

A hook called when a newsgroup is selected.

If you'd like to simplify subjects like the gnus-summary-next-same-subject command does, you can use the following hook:

 (add-hook gnus-select-group-hook
(lambda ()
(mapcar (lambda (header)
(setf (mail-header-subject header)
                             (gnus-simplify-subject
                              (mail-header-subject header) 're-only)))
gnus-newsgroup-headers)))

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/gnus-sum.el.gz
(defcustom gnus-select-group-hook nil
  "A hook called when a newsgroup is selected.

If you'd like to simplify subjects like the
`gnus-summary-next-same-subject' command does, you can use the
following hook:

 (add-hook gnus-select-group-hook
	   (lambda ()
	     (mapcar (lambda (header)
		       (setf (mail-header-subject header)
                             (gnus-simplify-subject
                              (mail-header-subject header) \\='re-only)))
		     gnus-newsgroup-headers)))"
  :group 'gnus-group-select
  :type 'hook)