I've been using hide-ifdef-mode
with c-mode
buffers for a while, but it is quite tedious to have to manually run hide-ifdefs
(C-c @ h
) every time a block of code containing preprocessors changes.
Is there any way this can be run automatically? (for example during syntax highlighting)