Browse Source

Merge pull request #2 from Whil-/master

Set visibility of backlinks section
master
Nicolas Petton 1 month ago
committed by GitHub
parent
commit
f25c89adc8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 6 deletions
  1. +10
    -6
      nroam.el

+ 10
- 6
nroam.el View File

@ -185,12 +185,16 @@ Make the region inserted by BODY read-only, and marked with
(defun nroam--insert ()
"Insert nroam sections in the current buffer."
(with-buffer-modified-unmodified
(save-excursion
(goto-char (point-max))
(with-nroam-markers
(seq-do #'funcall nroam-sections)))
(nroam--hide-drawers)))
(let ((p (point-max)))
(with-buffer-modified-unmodified
(save-excursion
(goto-char p)
(with-nroam-markers
(seq-do #'funcall nroam-sections))
(when (nroam--sections-inserted-p)
(save-restriction
(narrow-to-region p (point-max))
(org-set-startup-visibility)))))))
(defun nroam--get-backlinks ()
"Return a list of backlinks for the current buffer."


Loading…
Cancel
Save