kdelibs coding style
Matthias Kretz
kretz at kde.org
Thu Jul 20 17:48:56 BST 2006
On Thursday 01 January 1970 01:00, Zack Rusin wrote:
> Adam on IRC suggested providing modelines for Kate and Vi users so that
> the style is automatically enforced like with kde-emacs.
As a vim user you should add the line
source /path/to/kdesdk/scripts/kde-devel-vim.vim
to your ~/.vimrc and report any bugs you find to me. It will help you use the
correct coding style, though it doesn't enforce it.
I first made the script look at the path you're in and if you're in kdelibs
apply the Qt coding style, but dirk suggested that we might want to default
to Qt coding style everywhere. If you want to add your project path to
SetCodingStyle feel free.
A vim modeline should probably look like this, but if everybody were to use
kde-devel-vim.vim the modeline is not needed:
// vim: sw=4 sts=4 et tw=100
--
C'ya
Matthias
________________________________________________________
Matthias Kretz (Germany) <><
http://Vir.homelinux.org/
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060720/4e30360a/attachment.sig>
More information about the kde-core-devel
mailing list