Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Control the initial fold state of the backlinks headline #33

Open
sienic opened this issue May 15, 2021 · 0 comments
Open

Control the initial fold state of the backlinks headline #33

sienic opened this issue May 15, 2021 · 0 comments

Comments

@sienic
Copy link

sienic commented May 15, 2021

@NicolasPetton, thanks for such a useful package.
I found myself with the need of always expanding the backlinks headline when opening a file, as I can visualise links right away. So I adviced one of the methods as follows:

(warning: my elisp is basic)

(defun sn/advice-nroam--set-sections-visibility (orig-func &rest args)
  (let ((org-startup-folded 'showeverything))
         (apply orig-func args)))

(advice-add 'nroam--set-sections-visibility :around #'sn/advice-nroam--set-sections-visibility)

If you like the idea of adding a custom variable to your package, I am happy to contribute the changes.
Otherwise, I can just live with my advice function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant