How to achieve code folding effects in Emacs?

后端 未结 14 2169
眼角桃花
眼角桃花 2020-11-30 16:15

Whats the best way to achieve something like code folding, or the type of cycling that org-mode uses. What would be the best solution in elisp to create this type of behavi

相关标签:
14条回答
  • 2020-11-30 17:04

    If you are doing some JavaScript and using js2-mode.el, you can:

    C-c C-f: toggle hide/show all

    C-c C-e: hide element

    C-c C-s: show element

    0 讨论(0)
  • 2020-11-30 17:05

    emacs comes with hs-minor-mode which fascilitates code folding between balanced expressions http://www.emacswiki.org/emacs/HideShow

    0 讨论(0)
提交回复
热议问题