I am using cmake-mode which I thought came out of cc-mode (ed: comments below indicate this was incorrect). For some reason my indents (e.g. in an if() block) are coming out as 2 spaces, even though my c-basic-offset is set to 4. Does anybody know what/how to control this?
For example:
if( foo )
set( a "bar" )
endif()
Indentation for
cmake-modeseems to be controlled by the variablecmake-tab-width. You can adjust it like this: