jed-users mailing list

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

Re: C-mode indentation


John E. Davis wrote:
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

Sorry to be so late replying. This works fine if I remove the C_Class_Offset line and the two lines after it. My jed identifies itself as 0.99.18U. I'm running on Fedora Core 6.

--------------------------
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]