summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/km-org.el14
1 files changed, 9 insertions, 5 deletions
diff --git a/init/km-org.el b/init/km-org.el
index 631f5d0..e860812 100644
--- a/init/km-org.el
+++ b/init/km-org.el
@@ -152,11 +152,15 @@
(add-to-list 'org-latex-packages-alist '("" "amsmath" t))
(defadvice org-agenda-list (around org-agenda-fullscreen activate)
- (window-configuration-to-register :org-agenda-fullscreen)
+ "Start agenda in fullscreen.
+
+After agenda loads, delete other windows.
+`org-agenda-restore-windows-after-quit' should non-nil to restore
+the previous window configuration. If `org-agenda-sticky' is
+non-nil, configurations with more than one window do not seem to
+be restored properly."
ad-do-it
(delete-other-windows))
-(defadvice org-agenda-quit (around org-agenda-restore-screen activate)
- ad-do-it
- (jump-to-register :org-agenda-fullscreen))
-(setq org-agenda-sticky t)
+(setq org-agenda-restore-windows-after-quit t)
+(setq org-agenda-sticky nil)