How to achieve code folding effects in Emacs?

后端 未结 14 2234
眼角桃花
眼角桃花 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 16:54

    You can also get code folding by using CEDET with following code in init file:

    (global-semantic-folding-mode t)
    

    After evaluation of this code, the small triangle will appear in fringle area, so you will able to fold & unfold code using it. This method is more precise, as it uses syntactic information, extracted from source code

提交回复
热议问题