6

I want to hide blocks of #ifdef and #ifndef blocks in C. Looks like I'd either need to use Folding mode or the Outline minor mode.

ashawley
  • 4,195
  • 1
  • 27
  • 40

2 Answers2

8

hide-ifdef-mode should do something like that. I have not used it myself though, but turn it on and read it's description with the commands below. It should be included with emacs.

M-x hide-ifdef-mode
C-h m
Zitrax
  • 19,036
  • 20
  • 88
  • 110
1

You can use folding-mode from Cedet

Alex Ott
  • 80,552
  • 8
  • 87
  • 132