diff options
Diffstat (limited to 'lib/doc')
| -rw-r--r-- | lib/doc/jao-org-notes.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/doc/jao-org-notes.el b/lib/doc/jao-org-notes.el index 4b45eab..0b2c65b 100644 --- a/lib/doc/jao-org-notes.el +++ b/lib/doc/jao-org-notes.el @@ -188,7 +188,7 @@ appear in any order in the tags list. (init (concat "^..tags: " (mapconcat #'identity tags " ")))) (jao-org-notes-consult-ripgrep init))) -(defun jao-org-notes-create (&optional title) +(defun jao-org-notes-create (&optional title ret-buffer) "Create a new note file, matching tags and titles with completion." (interactive) (when (jao-org-notes--insert-title title) @@ -197,7 +197,7 @@ appear in any order in the tags list. ":\n") (org-insert-time-stamp (current-time) t t "#+date: " "\n")) (save-buffer) - (current-buffer)) + (if ret-buffer (current-buffer) (buffer-file-name))) (defun jao-org-notes-backlinks () "Show a list of note files linking to the current one." |
