summaryrefslogtreecommitdiffstatshomepage
path: root/nroam.el
diff options
context:
space:
mode:
Diffstat (limited to 'nroam.el')
-rw-r--r--nroam.el12
1 files changed, 0 insertions, 12 deletions
diff --git a/nroam.el b/nroam.el
index 78b59c3..dbe3cde 100644
--- a/nroam.el
+++ b/nroam.el
@@ -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