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


Hi,

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 -*- */

Cheers,

Manfred


P.S. The help for modeline_hook2 should read:
>  SYNOPSIS
>   modeline_hook2
>         
>  DESCRIPTION
>  check for the following mode statements:
> 
>  -*- mode: NAME -*-             set mode to NAME
>  -*- evalfile: FILE -*-         evaluate file FILE
>  -*- eval: expression -*-       evaluate expression
>  -*- VAR: VALUE -*-             set VAR = VALUE
>         
>  these statements may be combined:
> 
>  -*- mode: NAME; evalfile: FILE; VAR: VALUE -*-

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