- Subject: Re: C-mode indentation
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Wed, 30 May 2007 15:18:33 -0400
David Gressett <jdgressett@xxxxxxxxxxxxxxx> wrote:
>How do I create my own c-mode indentation style?
Put something like this in your .jedrc file:
define c_set_style_hook (style)
{
switch (style)
{
case "gressett":
C_INDENT = 3;
C_BRACE = 2;
C_BRA_NEWLINE = 1;
C_CONTINUED_OFFSET = 2;
C_Colon_Offset = 1;
C_Class_Offset = 3;
C_Namespace_Offset = 3;
C_Macro_Indent = 3;
}
{
% default
c_set_style ("jed");
}
}
c_set_style ("gressett");
Good luck,
--John
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2007 date index]
[2007 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]