From 96c09fe281b9307430d7353a24ff00fe06f838f9 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sat, 6 Feb 2016 23:48:25 -0500 Subject: org-agenda: Keep default-directory with restriction --- lisp/km-org.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lisp') diff --git a/lisp/km-org.el b/lisp/km-org.el index fcf82ed..5098748 100644 --- a/lisp/km-org.el +++ b/lisp/km-org.el @@ -308,8 +308,9 @@ called through the speed command interface." ;;;###autoload (defun km/org-agenda-cd-and-read-dir-locals () - (setq default-directory "~/notes/") - (hack-local-variables)) + (unless (get 'org-agenda-files 'org-restrict) + (setq default-directory "~/notes/") + (hack-local-variables))) ;;;###autoload (defun km/org-agenda-store-current-span () -- cgit v1.2.3