Le vendredi 02 septembre 2011 02:42:10, Etienne Tourigny a écrit : > Hi all, > > Can someone point me to the correct emacs configuration (in .emacs file) > that follows GDAL c++ coding standards? >
Sorry, I don't use emacs... > > It would be a nice addition to the Developer standards at > http://trac.osgeo.org/gdal/wiki/rfc8_devguide . > > The following seems to work, setting the spacing to 4, using spaces instead > of tabs and also indenting "case" statements. Am I missing anything? > > > (setq-default c-basic-offset 4 > tab-width 4 > indent-tabs-mode nil) > (c-set-offset 'case-label '+) Not sure if it is RFC material, but you can definitely share it in http://trac.osgeo.org/gdal/wiki/HowToContribute You have summed up perfectly the most important coding conventions. You have also probably noticed the nice visual ascii art that is generally prepended before each function/method : /************************************************************************/ /* foo() */ /************************************************************************/ And if you really want to confuse FrankW and make him believe he has written the code himself, you'd write if( foo ) rather than if (foo) ;-) > > Thanks, > Etienne > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
