mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Load org on +default/{browse,find-in}-notes if org-directory isn't set
This commit is contained in:
@ -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 (boundp '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 (boundp '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))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user