summaryrefslogtreecommitdiffhomepage
path: root/custom/jao-custom-gnus.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-12-09 22:41:17 +0000
committerjao <jao@gnu.org>2022-12-09 22:41:43 +0000
commit1a14cacb787f7ceb309e311474ad8c7cc7c6355e (patch)
treecce932988d7178b2c92fd2492f668486a3f6d1ef /custom/jao-custom-gnus.el
parent75cc671cf1e08fcbca2f92bde26b57652176a41c (diff)
downloadelibs-1a14cacb787f7ceb309e311474ad8c7cc7c6355e.tar.gz
elibs-1a14cacb787f7ceb309e311474ad8c7cc7c6355e.tar.bz2
gnus: ask on quit
Diffstat (limited to 'custom/jao-custom-gnus.el')
-rw-r--r--custom/jao-custom-gnus.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/custom/jao-custom-gnus.el b/custom/jao-custom-gnus.el
index f5f0c10..5707c67 100644
--- a/custom/jao-custom-gnus.el
+++ b/custom/jao-custom-gnus.el
@@ -14,6 +14,13 @@
;; close gnus when closing emacs, but ask when exiting
(setq gnus-interactive-exit t)
+;;; Startup and kill
+(setq gnus-interactive-exit t)
+
+(defun jao-quit-gnus () (gnus-group-exit) t)
+
+(add-hook 'kill-emacs-query-functions #'jao-quit-gnus)
+
;;; Directories
(defun jao-gnus-dir (dir)
(expand-file-name dir gnus-home-directory))