mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
Insert comment about not editing backlinks
This commit is contained in:
parent
f4f1fa3c48
commit
812da918f7
|
|
@ -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 (save-excursion (setq heading-point (re-search-backward heading nil t)))
|
||||||
(unless (denote--line-regexp-p 'empty 0)
|
(unless (denote--line-regexp-p 'empty 0)
|
||||||
(newline))
|
(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))
|
(insert (format "- %s\n" origin-link))
|
||||||
;; delete duplicate links
|
;; delete duplicate links
|
||||||
(unwind-protect
|
(unwind-protect
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue