- Subject: [Jed-users-l] Problems configuring C mode
- From: Peter Krefting <peter@xxxxxxxxxxxxxxxx>
- Date: Wed, 19 Jun 2013 11:07:41 +0100 (CET)
Hi!
I am trying to set up C mode to match the style used at $DAYJOB, which
is 3-space indent and no tabs. So far, I have set this up:
define c_mode_hook ()
{
C_INDENT = 3;
C_BRACE = 0;
C_BRA_NEWLINE = 1;
C_Colon_Offset = 0;
C_CONTINUED_OFFSET = 3;
TAB = 3;
USE_TABS = 0;
}
which works for most of it, but I still get a 4-space indent for lines
inside a class definition (in C++). After reading
/usr/share/jed/lib/cmode.sl I tried adding
C_Class_Offset = 3
which only results in a message "C_Class_Offset is undefined" when Jed
starts up. The same happens if I just try to add
(C_INDENT, C_BRACE, C_BRA_NEWLINE, C_CONTINUED_OFFSET,
C_Colon_Offset, C_Class_Offset) = (3,0,1,3,0,3);
at the end of my ~/.jedrc (ignoring the c_mode_hook() definition) as
suggested by
<http://espec.ppgia.pucpr.br/doc/editores/jed/quickref.html#C mode>.
Any ideas?
--
\\// Peter - http://www.softwolves.pp.se/
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l
[2013 date index]
[2013 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]