[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: A doubt on language-specific indentation settings
From:       Andrew Udvare <audvare () gmail ! com>
Date:       2014-11-28 19:52:52
Message-ID: 10938F0D-FDB9-4D3B-935D-3B0EECB73A84 () gmail ! com
[Download RAW message or body]


> On 2014-11-28, at 11:21, Matthew Woehlke <mw_triad@users.sourceforge.net> wrote:
> 
> IOW, a 'kate:' directive, which is what we have right now, applies to
> all file types. A 'kate (<patterns>):' directive applies only to files
> matching '<patterns>', where '<patterns>' works the same as "File
> extensions" in the "Modes & Filetypes" options.

I would rather see that in a fashion like this:

kate (mode=CoffeeScript;mode=YAML): indent-width 2
kate (hl=C++;hl=C;hl=PHP): indent-width 4

Of course, globs can still be a last resort though, for cases like:

kate (glob=*.mak): hl GNU Makefile; replace-tabs false; replace-tabs-save false; \
show-tabs false kate (glob=*.tsv): show-tabs true
kate (glob=*.tpl.php): mode PHP (HTML); indent-width 2

The thing about globs is that mode detection is quite good in Kate (so setting \
mode/hl is usually not necessary in a .kateconfig or mode line). The .kateconfig file \
should just patch based on what Kate detects using a series of qualifiers (or just \
one), just as the mode line does now.

Andrew
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic