info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hook to exit gnus upon C-x C-c?


From: Raphaël Berbain
Subject: Re: hook to exit gnus upon C-x C-c?
Date: Sat, 24 Jul 2004 20:22:13 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Albert Reiner <address@hidden> writes:

> how would one set up a hook to quit Gnus, if it is running, before
> exiting Emacs?

I use this:

(defadvice save-buffers-kill-emacs (before rgb/gnus-exit)
  (gnus-group-exit))

(add-hook 'gnus-started-hook
          (lambda () (ad-activate   'save-buffers-kill-emacs)))
(add-hook 'gnus-after-exiting-gnus-hook
          (lambda () (ad-deactivate 'save-buffers-kill-emacs)))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]