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.

2 Answers 2

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
Sign up to request clarification or add additional context in comments.

1 Comment

Also, that to take effect requires Alt-x hide-ifdefs after activating the mode (or use the Hide-Ifdef menu which is added as a main menu after activating).
1

You can use folding-mode from Cedet

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.