From: nbecker(a)fred.net
Date: 30 Aug 2001 09:39:00 -0400
>>>> "Robert" == Robert Pluim
<rpluim(a)bigfoot.com> writes:
Thanks. That is just about right.
Now I just have to figure out how to make it automatically happen when
I visit a file. I can almost do it with:
// Local Variables:
// eval: (hide-ifdef-mode 1)
// End:
The only problem being, I don't want to be asked whether to process
the eval every time.
Put this in your .emacs
(setq-default hide-ifdef-initially t)
(add-hook 'c-mode-common-hook '(lambda () (hide-ifdef-mode t)))
You can setup 'hide-ifdef-env' to how you want defines to be
initialized or you can call commands like hide-ifdef-define.
-jeff