Mark +org-dir obsolete (use org-directory instead)

I prefer not to invent new variables when they aren't strictly
necessary. org-directory is one such variable (although the other path
variables are still necessary).
This commit is contained in:
Henrik Lissner
2018-06-15 00:45:26 +02:00
parent db8b4091dd
commit 6693db48af
8 changed files with 30 additions and 33 deletions

View File

@@ -29,10 +29,8 @@
(defun +org|init-capture ()
(defvaralias 'org-default-notes-file '+org-default-notes-file)
(setq org-default-notes-file (expand-file-name +org-default-notes-file +org-dir)
+org-default-todo-file (expand-file-name +org-default-todo-file +org-dir))
(setq org-default-notes-file (expand-file-name +org-default-notes-file org-directory)
+org-default-todo-file (expand-file-name +org-default-todo-file org-directory))
(add-hook 'org-capture-after-finalize-hook #'+org-capture|cleanup-frame)