syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.64k stars 4.89k forks source link

evil folding stopped working on C/C++ modes #379

Closed quartz55 closed 9 years ago

quartz55 commented 9 years ago

After the 0.41 release (if I'm not mistaken) code folding in C and C++ modes stopped working, I get a message saying "Folding is not supported in any of these major/minor modes".

Apologies in advance if I missed something in the docs update :)

syl20bnr commented 9 years ago

mmmmhhhh that's really strange, I can't see what would trigger this. Do you have any other error reported in the message buffer ? Do you have some special configuration for folding or is this just plain evil fold feature ?

chrisbarrett commented 9 years ago

At some point I noticed hideshow was turned off by default for me, and I had to add hs-minor-mode to a few hooks. Might be a change upstream in evil?

quartz55 commented 9 years ago

@syl20bnr Nope, that's the only message I get and I have the default config for folding. Tho, as @chrisbarrett said, enabling hs-minor-mode worked :+1: