[gdal-dev] emacs configuration for correct code indentation?

Etienne Tourigny etiennesky at yahoo.com
Thu Sep 1 20:42:10 EDT 2011


Hi all,

Can someone point me to the correct emacs configuration (in .emacs file) that follows GDAL c++ coding standards?  


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 '+)

Thanks,
Etienne


More information about the gdal-dev mailing list