summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2022-07-30 01:40:48 -0400
committerKyle Meyer <kyle@kyleam.com>2022-11-26 21:45:14 -0500
commit9f75de5bb43135b6d72dc28ffa4c6e3470daa35e (patch)
tree7cd5d9edf16b84a1d3063066d6267187b973828d /lisp
parent534b7c090689c61ea3d5a1f45e76cf101efb8a3f (diff)
downloademacs.d-9f75de5bb43135b6d72dc28ffa4c6e3470daa35e.tar.gz
org: Avoid hard-coding notes location in multiple places
Use org-directory instead.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/km-org-agenda.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/km-org-agenda.el b/lisp/km-org-agenda.el
index c0f9539..ded7afc 100644
--- a/lisp/km-org-agenda.el
+++ b/lisp/km-org-agenda.el
@@ -33,7 +33,7 @@
(defun km/org-agenda-cd-and-read-dir-locals ()
(unless (get 'org-agenda-files 'org-restrict)
- (setq default-directory (expand-file-name "~/notes/"))
+ (setq default-directory org-directory)
(hack-local-variables)))
(defun km/org-agenda-store-current-span ()