jed-users mailing list

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

Re: [jed-users] Ratliff and Whitesmith C indent modes? ... and more questions


On 10/26/2016 08:21 PM, John E. Davis wrote:
> In your .jedrc file, create function called c_set_style_hook that
> takes the name of your c-style, e.g., "ratliff":
>
>    require ("cmode"); % make variables used below visible
>    define c_set_style_hook (name)
>    {
>       if (name == "ratliff")
>         {
>            % Customize
>            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;
>            C_Label_Offset = 0;
>            C_Label_Indents_Relative = 0;
>            C_Outer_Block_Offset = 0;
>         }
>     }
I've been adding my own mode into cmode.sl for many many years.  This
local solution looks better.  I tried this and it doesn't quite work. 
If I include the first line 'require ("cmode")' it makes things like
ctrl-s, ctrl-x, ctrl-c not work.

Judd

_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.


[2016 date index] [2016 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]