branch: externals/denote
commit 812da918f7c8c147feb92288990c1b8cb3540d69
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Insert comment about not editing backlinks
---
denote-link.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/denote-link.el b/denote-link.el
index ad0ae0639f..c0875cf463 100644
--- a/denote-link.el
+++ b/denote-link.el
@@ -117,7 +117,8 @@ This heading is appended to a file when another links to
it.")
(unless (save-excursion (setq heading-point (re-search-backward heading
nil t)))
(unless (denote--line-regexp-p 'empty 0)
(newline))
- (insert (format "* %s\n\n" heading)))
+ (insert
+ (format "* %s\n%s\n\n" heading "# Do not edit; this is for denote.el
and related")))
(insert (format "- %s\n" origin-link))
;; delete duplicate links
(unwind-protect