jed-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: C-mode indentation


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]