From c9ee708eea024b585b61381c6f844b0e37087561 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 23 Jan 2015 23:24:31 -0500 Subject: Use sticky Org agenda As of commit 7e945107ced488344fd78cd1388cf000b29733e8 in Org mode, restoring windows should work better with sticky agenda buffers. --- lisp/init-org.el | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'lisp/init-org.el') diff --git a/lisp/init-org.el b/lisp/init-org.el index a674610..c4340d9 100644 --- a/lisp/init-org.el +++ b/lisp/init-org.el @@ -277,7 +277,7 @@ to (file-expand-wildcards "~/notes/extra/*.org")) (setq org-agenda-restore-windows-after-quit t - org-agenda-sticky nil) + org-agenda-sticky t) (setq org-agenda-dim-blocked-tasks nil org-agenda-show-all-dates t @@ -306,15 +306,11 @@ to (add-hook 'org-agenda-finalize-hook 'km/org-agenda-store-current-span) (after 'org-agenda - (defadvice org-agenda-list (around org-agenda-fullscreen activate) + (defadvice org-agenda-prepare-window (after org-agenda-fullscreen activate) "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 +the previous window configuration." (delete-other-windows))) (defun km/org-agenda-cd-and-read-dir-locals () -- cgit v1.2.3