From: khaelin <kh...@gm...> - 2010-07-21 13:51:47
|
Hi, I've been trying to configure cc-mode to indent if/else blocks as follows (this is a coding rule at work): if (foo) { return; } else if (bar) { return; } else { return; } instead of the default indentation: if (foo) { return; } else if (bar) { return; } else { return; } After reading the documentation of the cc-mode, I think I need to use a custom lineup function for substatements, but I have trouble writing it. Does someone ever tried doing this kind of thing ? Thank you. Regards, Nicolas Martyanoff |