diff options
-rw-r--r-- | lisp/init-org.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/init-org.el b/lisp/init-org.el index a37f330..66dc1e7 100644 --- a/lisp/init-org.el +++ b/lisp/init-org.el @@ -277,6 +277,12 @@ be restored properly." ad-do-it (delete-other-windows))) +(defun km/org-agenda-cd-and-read-dir-locals () + (setq default-directory "~/notes/") + (hack-local-variables)) + +(add-hook 'org-agenda-mode-hook 'km/org-agenda-cd-and-read-dir-locals) + (setq org-agenda-restore-windows-after-quit t org-agenda-sticky nil) |