jed-users mailing list

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

Re: [Jed-users-l] Modelines


Manfred Hanke <Manfred.Hanke@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> On 07/03/2013 10:53 AM, Peter Krefting wrote:
>> Is it possible to get jed to respect emacs/vi modelines, a'la
>>    /* -*- Mode: c++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
>> ?
>
> Yes, if Enable_Mode_Hook_Eval is NULL or 1
> (see Help -> Describe Variable -> Enable_Mode_Hook_Eval).
>
> However, "mode" needs to be in lower-case,
> and only variables known to jed can be set,
> e.g.:
>> /* -*- mode: c++; TAB: 4; C_INDENT: 4; C_Class_Offset: 2 -*- */

Perhaps the emacs/vi variable names can be regarded as aliases for the
jed equivalents.  The mapping could be performed via an associative
array.  --John

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