Hi Eric,

On Thu, 19 Feb 2009 10:36:58 +1100 Erik de Castro Lopo 
<[email protected]> wrote:

...
 
> > If you put above mentioned macros
> > to the field "Language Specific Initialization Macro Commands and 
> > Definitions"
> > for the Haskell mode,
> 
> I'm not sure about this bit. Can someone point me to where in the
> config files I put the language specific initialisations?
> 

There is even a (hard to find) UI for that:

  Preferences -> Default Settings -> Auto Indent -> Program Smart Indent

Anyway, in the config file it's like that ("\n\"-Sequences omitted) :

nedit.smartIndentInit: <LANGUAGE>:
        <Initialization Macro Code>
        --End-of-Macro--
        <Newline Macro Code>
        --End-of-Macro--
        <Type-In Macro Code>
        --End-of-Macro--
        <NEXT LANGUAGE>:
        <Initialization Macro Code>
        --End-of-Macro--
        <Newline Macro Code>
        --End-of-Macro--
        <Type-In Macro Code>
        --End-of-Macro--

for example, i have:

nedit.smartIndentInit:  C:      # C Macros and tuning parameters are shared 
with C++, and are declared\n\
        # in the common section.  Press Common / Shared Initialization above.\n\
        --End-of-Macro--\n\
        return cFindSmartIndentDist($1)\n\
        word_trace($1, ";")\n\
        --End-of-Macro--\n\
        if ($2 == "}" || $2 == "{" || $2 == "#")\n\
            cBraceOrPound($1, $2)\n\
        word_trace($1, $2)\n\
        --End-of-Macro--\n\
        C++:Default\n\

Best regards,

Markus

-- 
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to