Fix wrong-type-arg symbolp error from notes commands

This commit is contained in:
Henrik Lissner 2020-05-14 15:16:34 -04:00
parent 2bdc14710f
commit 85fb59acca
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -28,14 +28,14 @@
(defun +default/browse-notes () (defun +default/browse-notes ()
"Browse files from `org-directory'." "Browse files from `org-directory'."
(interactive) (interactive)
(unless (bound-and-true-p 'org-directory) (unless (bound-and-true-p org-directory)
(require 'org)) (require 'org))
(doom-project-browse org-directory)) (doom-project-browse org-directory))
;;;###autoload ;;;###autoload
(defun +default/find-in-notes () (defun +default/find-in-notes ()
"Find a file under `org-directory', recursively." "Find a file under `org-directory', recursively."
(interactive) (interactive)
(unless (bound-and-true-p 'org-directory) (unless (bound-and-true-p org-directory)
(require 'org)) (require 'org))
(doom-project-find-file org-directory)) (doom-project-find-file org-directory))