I'm currently trying to write a function to do some post-capture
updates to an entry. My intention is to add it to
org-capture-after-finalize-hook. First step is navigating to the
captured item but I'd like to return to the current buffer I was in
before. I'm still a novice with elisp, so I could use a pointer here.
Here is a simplified example:
M-: (save-excursion (org-capture-goto-last-stored))
Is there a better way to navigate to the last capture and then return
to my current buffer?
Thanks,
Jon Miller
;; My current full version:
(defun jsm/org-project-properties ()
"Takes the current heading title, denoting the project, and
sets the :EXPORT_TITLE: and :CATEGORY: properties to the same."
(interactive)
(save-excursion
(org-capture-goto-last-stored) ; Aka C-u C-u org-capture
(let ((project-title (org-get-heading t t)))
(org-set-property "EXPORT_TITLE" project-title)
(org-set-property "CATEGORY" project-title))))