diff options
author | Kyle Meyer <kyle@kyleam.com> | 2013-12-27 15:35:26 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2013-12-27 15:35:26 -0500 |
commit | 62d0519338d812320cd96f3673425336ab42f179 (patch) | |
tree | 31f36c4c51a839efbfdfba8698fea1e946e2e686 /init | |
parent | bd16be9f023fd948dfcca41005edbccbec3e7db4 (diff) | |
download | emacs.d-62d0519338d812320cd96f3673425336ab42f179.tar.gz |
Fullscreen advice for gnus
Copied over from magit advice.
Diffstat (limited to 'init')
-rw-r--r-- | init/km-gnus.el | 8 |
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)) |