Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • That partially works in my configuration: only the first (markdown-cycle t) is respected, getting me to OVERVIEW (then the first S-TAB has no effect). Commented Sep 12, 2022 at 19:39
  • Oh wow, that markdown-cycle code didn't work like I thought. I think at this point the simplest thing is to copy the code from markdown-cycle :-( so I will update my answer. Commented Sep 13, 2022 at 16:51
  • Just for reference, from your first version I used just one line, :preface (defun my/markdown-OVERVIEW () (markdown-cycle t)), which got me to OVERVIEW. Your edited code does get me directly into CONTENTS view, but with one disadvantage: 1st S-TAB (bound to markdown-shifttab) reports "OVERVIEW" though nothing has changed in the buffer; 2nd S-TAB reports "CONTENTS", again no change in the buffer; 3rd S-TAB successfully gets SHOW ALL, and from then cycles through those three views as expected. Any ideas how to get S-TAB immediately fully functional? Commented Sep 14, 2022 at 9:25