From 62d0519338d812320cd96f3673425336ab42f179 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 27 Dec 2013 15:35:26 -0500 Subject: Fullscreen advice for gnus Copied over from magit advice. --- init/km-gnus.el | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'init') 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)) -- cgit v1.2.3