chiark / gitweb /
dot/gnus.el: Hack for closing the summary view.
[profile] / dot / gnus.el
index 7276865055e71b16d33aef1b0294c81dbfb36610..0cfe467d06248bf7ebed868d0d6ee6bf5d9b3abc 100644 (file)
@@ -74,6 +74,10 @@ (setq nnimap-split-crosspost t)
 ;; We may have the misfortune to talk to an Exchange server.
 (setq imap-enable-exchange-bug-workaround t)
 
+;; Clean up properly when closing the summary.
+(defadvice gnus-summary-exit (before mdw-kill-debris compile activate)
+  (gnus-summary-expand-window))
+
 ;;;--------------------------------------------------------------------------
 ;;; Local configuration.