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

Control the initial fold state of the backlinks headline #33

@sienic

Description

@sienic

@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions