I would like to have automatic folds for comments in my AquaEmacs.
相关问题
- Symbol's function definition is void: declare-
- Xcode debugger displays incorrect values for varia
- Is there a way to report errors in Apple documenta
- Advice for supporting both Mac and Windows Desktop
- How can I set the SVN password with Emacs 23.1 bui
相关文章
- 现在使用swift开发ios应用好还是swift?
- Visual Studio Code, MAC OS X, OmniSharp server is
- ess-rdired: I get this error “no ESS process is as
- xcode 4 garbage collection removed?
- IntelliJ IDEA can't open projects or add SDK o
- Automator: How do I use the Choose from List actio
- ImportError: No module named twisted.persisted.sty
- How can I vertically align my status bar item text
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.
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:hs-hide-comments-when-hiding-all
hs-hide-all-non-comment-function
and thenhs-hide-all
to hide all comments.have not tried it. just an idea.
check out the hideshow mode page at emacswiki as well.