I've been trying to have Markdown Mode open all markdown files in CONTENTS view, i.e. all folded up. I can of course just hit S-TAB twice whenever I open a markdown file, but, with markdown-mode.el available I shouldn't need to. I can only see one likely variable to tweak - markdown-cycle-global-status. I attempted to tweak this this in my init.el:
(use-package markdown-mode :mode ("\\.markdown\\'" "\\.md\\'") :init ; (setq markdown-cycle-global-status 3) ; doesn't trigger CONTENTS (setq markdown-command "pandoc")) ; (add-hook 'markdown-mode-hook ; (lambda () ; (setq markdown-cycle-global-status 3))) ; doesn't trigger CONTENTS The trailing comments "doesn't..." follow code that, when uncommented, has no effect, though I thought it might. So I tried tweaking ~/.emacs.d/straight/repos/markdown-mode/markdown-mode.el:
(defvar markdown-cycle-global-status 3) ; by default it's 1 - still not opening md's in CONTENTS view.
So any suggestions how to do this?