New answers tagged


You are in the *Capture* buffer during the execution of the Elisp code embedded in the template. Execute your code with the active buffer temporarily set to the original buffer. You get the original buffer from the plist variable org-capture-plist as property :original-buffer. (defun org-capture-pdf-active-region () "Capture the active region of the pdf-...

Top 50 recent answers are included