nroam icon indicating copy to clipboard operation
nroam copied to clipboard

Control the initial fold state of the backlinks headline

Open sienic opened this issue 3 years ago • 0 comments

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

sienic avatar May 15 '21 13:05 sienic