Fix #2968: refactor how org-directory default is set

This commit is contained in:
Henrik Lissner 2020-04-25 15:40:24 -04:00
parent 77542bcccc
commit 6cb1390fac
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 30 additions and 15 deletions

View file

@ -27,11 +27,15 @@
;;;###autoload
(defun +default/browse-notes ()
"Browse files from `org-directory'."
(interactive) (doom-project-browse org-directory))
(interactive)
(require 'org)
(doom-project-browse org-directory))
;;;###autoload
(defun +default/find-in-notes ()
"Find a file under `org-directory', recursively."
(interactive) (doom-project-find-file org-directory))
(interactive)
(require 'org)
(doom-project-find-file org-directory))
;;;###autoload
(defun +default/find-file-under-here ()