How can you have folds for a LaTeX file in XEmacs?

只谈情不闲聊 提交于 2019-12-23 03:11:28

问题


I would like to have automatic folds for comments in my AquaEmacs.


回答1:


have a look at hs-minor-mode. it's not automatic though. for a more automatic approach, i guess you could customize the hideshow mode the following way:

  1. hide comments via hs-hide-comments-when-hiding-all
  2. assign a function which hides nothing to hs-hide-all-non-comment-function and then
  3. use hs-hide-all to hide all comments.

have not tried it. just an idea.

check out the hideshow mode page at emacswiki as well.




回答2:


You cannot have similar folds as in Vim. I could not put folds to specific lines.

However, there is an addon Auctex which gives you Emacs-folds. They are not as flexible as in Vim.

Please, inform me if you have found a better solution.



来源:https://stackoverflow.com/questions/575060/how-can-you-have-folds-for-a-latex-file-in-xemacs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!