diff options
-rw-r--r-- | nroam-unlinked.el | 3 | ||||
-rw-r--r-- | nroam.el | 12 |
2 files changed, 1 insertions, 14 deletions
diff --git a/nroam-unlinked.el b/nroam-unlinked.el index 5f511a4..46f2ef9 100644 --- a/nroam-unlinked.el +++ b/nroam-unlinked.el @@ -62,8 +62,7 @@ "Insert a button to show unlinked references." (let ((beg (point))) (insert "[Show unlinked references]") - (make-text-button beg (point) 'action #'nroam-unlinked--show-references) - (insert "\n"))) + (make-text-button beg (point) 'action #'nroam-unlinked--show-references))) (defun nroam-unlinked--show-references (&rest _) "Search for and show unlinked references." @@ -56,18 +56,6 @@ (defvar-local nroam-start-marker nil) (defvar-local nroam-end-marker nil) -(defun nroam--handle-org-capture (&rest _) - "Setup the `org-capture' buffer. - -Nroam sections need to be pruned as they are in read-only, -otherwise `org-capture' will fail to insert the capture -template." - (when-let ((buf (org-capture-get :buffer))) - (with-current-buffer buf - (nroam--prune)))) - -(advice-add 'org-capture-place-template :before #'nroam--handle-org-capture) - (defmacro with-nroam-markers (&rest body) "Evaluate BODY. Make the region inserted by BODY read-only, and marked with |