How to achieve code folding effects in Emacs?

后端 未结 14 2220
眼角桃花
眼角桃花 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:02

    If you use hs-minor-mode, it might be a good idea to also set a more convenient shortcut, e.g.:

    (eval-after-load 'hideshow
     '(progn
       (global-set-key (kbd "C-+") 'hs-toggle-hiding)))
    

提交回复
热议问题