summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-01-23 23:24:31 -0500
committerKyle Meyer <kyle@kyleam.com>2015-01-27 01:01:05 -0500
commitc9ee708eea024b585b61381c6f844b0e37087561 (patch)
tree3b9185de788b524cd417ae63351cb3255a4ebd0d /lisp
parentd9cae60fa5048abd3528f96a285109329639fda6 (diff)
downloademacs.d-c9ee708eea024b585b61381c6f844b0e37087561.tar.gz
Use sticky Org agenda
As of commit 7e945107ced488344fd78cd1388cf000b29733e8 in Org mode, restoring windows should work better with sticky agenda buffers.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-org.el10
1 files changed, 3 insertions, 7 deletions
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 ()