aboutsummaryrefslogtreecommitdiff
path: root/kte/global.kateconfig
diff options
context:
space:
mode:
Diffstat (limited to 'kte/global.kateconfig')
-rw-r--r--kte/global.kateconfig14
1 files changed, 14 insertions, 0 deletions
diff --git a/kte/global.kateconfig b/kte/global.kateconfig
new file mode 100644
index 0000000..2ba6fee
--- /dev/null
+++ b/kte/global.kateconfig
@@ -0,0 +1,14 @@
+
+// Tabs 4-spaces wide: C, C++, Bison, PHP and Go.
+kate-mimetype(text/x-c++hdr;text/x-chdr;text/x-c++src;text/x-csrc): indent-width 4; remove-trailing-spaces modified; replace-tabs false; tab-indents true; tab-width 4;
+kate-wildcard(*.y;*.yy): indent-width 4; remove-trailing-spaces modified; replace-tabs false; tab-indents true; tab-width 4;
+kate-mimetype(text/x-php4-src;text/x-php3-src;text/vnd.wap.wml;application/x-php): indent-width 4; remove-trailing-spaces modified; replace-tabs false; tab-indents true; tab-width 4;
+kate-wildcard(*.go): indent-width 4; remove-trailing-spaces modified; replace-tabs false; tab-indents true; tab-width 4;
+
+// 2 spaces, no tabs: Ruby & JS.
+kate-mimetype(application/x-ruby): indent-width 2; remove-trailing-spaces modified; replace-tabs true; tab-indents true; tab-width 2;
+kate-mimetype(text/x-javascript;application/x-javascript): indent-width 2; remove-trailing-spaces modified; replace-tabs true; tab-indents true; tab-width 2;
+
+// Any other language is set undefined. The style will be picked according to
+// the defaults as given in the settings dialog (Editing -> Indentation).
+