summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2013-11-03 00:28:52 -0400
committerKyle Meyer <kyle@kyleam.com>2013-11-03 10:12:37 -0500
commit85d118ed5bbde2cf86dc62a5857aaa8670ebfac1 (patch)
tree0f49ddc69f559502306289869c5d2fa4731c9850 /init
parentd475d35affa2418dc6fe86fdb03fc4d296809e0f (diff)
downloademacs.d-85d118ed5bbde2cf86dc62a5857aaa8670ebfac1.tar.gz
Fullscreen org-agenda-list
Modified from similar magit setup: http://whattheemacsd.com/setup-magit.el-01.html
Diffstat (limited to 'init')
-rw-r--r--init/km-org.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/init/km-org.el b/init/km-org.el
index 95de5c3..255cccc 100644
--- a/init/km-org.el
+++ b/init/km-org.el
@@ -150,3 +150,11 @@
(setcar (rassoc '("wasysym" t) org-latex-default-packages-alist)
"nointegrals")
(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)
+ 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))