[sysadmin/kde-ansible] /: Delete ".kateconfig"

Dominik Haumann dhaumann at kde.org
Sat Dec 30 16:23:10 UTC 2017


Hi Nicolás¸

I found https://kate-editor.org/2006/02/09/kateconfig-files/ and
extended this blog post to reflect the current state (since 2006!!!):

Simply use:
kate: indent-width 4;
kate-wilcard(*.yml): indent-width 2;

Make sure, that kate-wildcard is below the general rule kate: ... so
that the general modelines are overwritten.

Greetings
Dominik

On Sat, Dec 30, 2017 at 10:57 AM, Dominik Haumann <dhaumann at kde.org> wrote:
> It is possible to specify different settings for different file extensions
> and mimetypes in a .kateconfig file.
>
> @kwrite-devel: how was the syntax again?
>
> Greetings
> Dominik
>
>
> Am 30.12.2017 06:34 schrieb "Nicolás Alvarez" <null at kde.org>:
>
> Git commit 0a0b4240796e93bef98662860c17e43a9a54f728 by Nicolás Alvarez.
> Committed on 30/12/2017 at 05:33.
> Pushed by nalvarez into branch 'master'.
>
> Delete ".kateconfig"
>
> It causes me more trouble than it solves, because it applies to all files.
> I want .yml files to have 2-space indents but Python should stay with
> 4 spaces, and this can't be done in a .kateconfig file.
>
> D  +0    -1    .kateconfig
>
> https://commits.kde.org/sysadmin/kde-ansible/0a0b4240796e93bef98662860c17e43a9a54f728
>
> diff --git a/.kateconfig b/.kateconfig
> deleted file mode 100644
> index e9531dd..0000000
> --- a/.kateconfig
> +++ /dev/null
> @@ -1 +0,0 @@
> -kate: tab-width 2; indent-width 2; replace-tabs on;
>
>


More information about the KWrite-Devel mailing list