help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I make emacs indent treat #ifdef and #endif as if they were {


From: Ken Goldman
Subject: Re: How do I make emacs indent treat #ifdef and #endif as if they were { and }?
Date: Wed, 08 Feb 2012 16:57:56 -0500
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1

If you care about portability, some older compilers do not permit white space before the #.

On 2/3/2012 4:49 PM, Jules Colding wrote:

I've tried to figure out how to make emacs indent #ifdef blocks just
like it would curly brace blocks. With a twist though… I'd prefer if
I could convince emacs to indent include statement half the amount of
whitespace that normal code would be indented.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]