diff options
author | Nicolas Petton | 2021-03-16 10:22:03 +0100 |
---|---|---|
committer | Nicolas Petton | 2021-03-16 10:23:36 +0100 |
commit | 72bc00f3ec82fea8648a7fc7848c5ee1bfefe57e (patch) | |
tree | 1d5297146121ba6e073fa7e68e85fbf80e8a1826 /nroam-unlinked.el | |
parent | 4b6d598a1dadb864fdb88a699fc2eff172857201 (diff) | |
download | nroam-72bc00f3ec82fea8648a7fc7848c5ee1bfefe57e.tar.gz nroam-72bc00f3ec82fea8648a7fc7848c5ee1bfefe57e.zip |
Remove advice before before org-capture-place template
Now that nroam inserts a non read-only \n after the sections so that text can be
inserted after nroam sections at the end of the buffer, remove the extra
read-only \n so that org-capture can insert templates.
* nroam.el (nroam--handle-org-capture): Remove function and advice.
* nroam-unlinked.el (nroam-unlinked--insert-toggle-button): Do not insert a
read-only newline as it prevents org-capture from inserting the template as it
tries to delete empty lines at the end of the buffer.
Diffstat (limited to 'nroam-unlinked.el')
-rw-r--r-- | nroam-unlinked.el | 3 |
1 files changed, 1 insertions, 2 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." |