Go to the first, previous, next, last section, table of contents.

Editing KILL Files

The command M-K in Subject Mode and Group Mode (gnus-Subject-edit-global-kill and gnus-Group-edit-global-kill) pops up an Emacs buffer for editing a global KILL file. A global KILL file is created in the directory specified by the variable gnus-article-save-directory (default to `~/News'), and its file name is specified by the variable gnus-kill-file-name (default to `KILL').

The command M-k in Subject Mode and Group Mode (gnus-Subject-edit-local-kill and gnus-Group-edit-local-kill) pops up an Emacs buffer for editing a local KILL file. A local KILL file for a newsgroup news.group is created as `news.group.KILL' in the directory specified by the variable gnus-article-save-directory if the variable gnus-use-long-file-name is non-nil. Otherwise, if the variable gnus-use-long-file-name is nil, the file is created as `news/group/KILL' under the same directory.

The major mode of these buffers is KILL-File Mode. This mode is specialized for editing Emacs lisp programs the same as Emacs-Lisp Mode. In addition to Emacs-Lisp Mode, the following commands are available:

C-c C-k C-s
Insert a template of a kill command on subject (gnus-Kill-file-kill-by-subject).
C-c C-k C-a
Insert a template of a kill command on author (gnus-Kill-file-kill-by-author).
C-c C-a
Apply current buffer being edited to selected newsgroup (gnus-Kill-file-apply-buffer).
C-c C-e
Apply sexp before point in current buffer to selected newsgroup (gnus-Kill-file-apply-last-sexp).
C-c C-c
Save the KILL file and then return to the previous buffer (gnus-Kill-file-exit).
C-c C-i
Read Info on KILL file (gnus-Info-find-node). See section Texinfo Manual, to prepare an Info file of GNUS.

If KILL-File Mode is invoked from Subject Mode by the command gnus-Subject-edit-local-kill or gnus-Subject-edit-global-kill, the commands C-c C-k C-s and C-c C-k C-a (gnus-Kill-file-kill-by-subject and gnus-Kill-file-kill-by-author) insert a kill command on the subject and author of an article where the point is on, respectively. Otherwise, a template of a kill command is inserted.

The commands C-c C-a and C-c C-e (gnus-Kill-file-apply-buffer and gnus-Kill-file-apply-last-sexp) can be used to test kill commands being edited in current buffer. The kill commands are applied to current newsgroup.


Go to the first, previous, next, last section, table of contents.