summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/km-gnus.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/init/km-gnus.el b/init/km-gnus.el
index 077201d..7c38552 100644
--- a/init/km-gnus.el
+++ b/init/km-gnus.el
@@ -193,3 +193,11 @@ NO-NUMBER is non-nil, the number of lines is not added."
(lambda ()
(gnus-define-keys gnus-article-mode-map
"e" shr-browse-url)))
+
+(defadvice gnus (around gnus-fullscreen activate)
+ (window-configuration-to-register :gnus-fullscreen)
+ ad-do-it
+ (delete-other-windows))
+(defadvice gnus-group-exit (around gnus-restore-screen activate)
+ ad-do-it
+ (jump-to-register :gnus-fullscreen))