diff --git a/modules/config/default/autoload/files.el b/modules/config/default/autoload/files.el index c672b69cb..35a224681 100644 --- a/modules/config/default/autoload/files.el +++ b/modules/config/default/autoload/files.el @@ -28,14 +28,14 @@ (defun +default/browse-notes () "Browse files from `org-directory'." (interactive) - (unless (boundp 'org-directory) + (unless (bound-and-true-p 'org-directory) (require 'org)) (doom-project-browse org-directory)) ;;;###autoload (defun +default/find-in-notes () "Find a file under `org-directory', recursively." (interactive) - (unless (boundp 'org-directory) + (unless (bound-and-true-p 'org-directory) (require 'org)) (doom-project-find-file org-directory))