diff options
| -rw-r--r-- | README.md | 3 | ||||
| -rwxr-xr-x | install.sh | 8 | ||||
| -rw-r--r-- | kte/global.kateconfig | 14 | ||||
| -rw-r--r-- | kte/kde.kateconfig | 5 | ||||
| -rw-r--r-- | kte/mssola-solarized.kateschema (renamed from katepart/mssola-solarized.kateschema) | 0 | ||||
| -rw-r--r-- | kte/mssola.kateschema (renamed from katepart/mssola.kateschema) | 0 | ||||
| -rw-r--r-- | kte/xoria256.kateschema (renamed from katepart/xoria256.kateschema) | 0 |
7 files changed, 28 insertions, 2 deletions
@@ -1,5 +1,4 @@ -README ------- +# README To automatically install everything, just execute the install.sh script. Take a look at this script since it might perform some actions that are @@ -32,6 +32,14 @@ cp -rf vim $HOME/.vim cp vimrc $HOME/.vimrc vim +PluginInstall +qall +# Update the style for KTE users (KWrite, Kate, KDevelop & Kile). Note that +# there are two configs: the global one and the KDE one. The KDE one assumes +# that all your KDE projects are stored in the `$HOME/Projects/kde` directory. +# The global one is installed in the $HOME directory. +mkdir -p $HOME/Projects/kde +cp kte/kde.kateconfig $HOME/Projects/kde/.kateconfig +cp kte/global.kateconfig $HOME/.kateconfig + # Download and install the g utility cd /tmp rm -rf g 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). + diff --git a/kte/kde.kateconfig b/kte/kde.kateconfig new file mode 100644 index 0000000..aa32a5a --- /dev/null +++ b/kte/kde.kateconfig @@ -0,0 +1,5 @@ + +// 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 true; tab-indents true; tab-width 4; +kate-wildcard(*.y;*.yy): indent-width 4; remove-trailing-spaces modified; replace-tabs true; tab-indents true; tab-width 4; + diff --git a/katepart/mssola-solarized.kateschema b/kte/mssola-solarized.kateschema index 10b8882..10b8882 100644 --- a/katepart/mssola-solarized.kateschema +++ b/kte/mssola-solarized.kateschema diff --git a/katepart/mssola.kateschema b/kte/mssola.kateschema index 76b66a1..76b66a1 100644 --- a/katepart/mssola.kateschema +++ b/kte/mssola.kateschema diff --git a/katepart/xoria256.kateschema b/kte/xoria256.kateschema index 31c8a0e..31c8a0e 100644 --- a/katepart/xoria256.kateschema +++ b/kte/xoria256.kateschema |
