Я бы хотел, чтобы emacs обрабатывал "#ifdef" точно так же, как "{" и "#endif" как "}" в отношении отступа. Вот так:
#ifdef __linux__
#include <sys/socket.h>
#endif
int func(void)
{
int foo = 0;
#ifdef DO_STUFF
foo = do_stuff();
#endif
return foo;
}
вместо:
#ifdef __linux__
#include <sys/socket.h>
#endif
int func(void)
{
int foo = 0;
#ifdef DO_STUFF
foo = do_stuff();
#endif
return foo;
}
Мешать с "cpp-macro" не помогает. Как бы я это сделал? Спасибо!