[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: Re: adjusting indentation of code pasted from the clipboard
From: Gerald Senarclens de Grancy <gerald () senarclens ! eu>
Date: 2013-04-22 9:02:09
Message-ID: CAPszUghPQMii6dRiwg6PsQTqrex==qfoAj_bCo2mpKHVKMKo1Q () mail ! gmail ! com
[Download RAW message or body]
Thanks for the answer!
> Good catch. We once had a similar issue with tabs in Makefiles. To avoid
> turning tabs into spaces, kate/part/data/katemoderc contains the following
> entry:
> [Makefile]
> Variables=kate: tab-width 8; indent-width 8; replace-tabs off; replace-tabs-save off;
> I agree that the correct fix is to add a modeline called
> 'indent-pasted-code', and then add to katemoderc the following section
> [Python]
> Variables=kate: indent-pasted-code off;
sounds perfect
> This document variable then will always overwrite global editor settings.
> Would you implement this? :-)
I'll try ;)
> Just search for '"replace-tabs"' in the part and you will find all places
> where you have to add similar code for indent-pasted-code. And don't forget
> to add it in configuring.docbook with a note that it's available since KDE
> 4.11.
ok
regards, g
--
Gerald Senarclens de Grancy
http://senarclens.eu/~gerald/
Open minds on open source!
_______________________________________________
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