Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用我认为来自 cc-mode 的 cmake-mode(编辑:下面的评论表明这是不正确的)。出于某种原因,即使我的 c-basic-offset 设置为 4,我的缩进(例如在 if() 块中)显示为 2 个空格。有人知道什么/如何控制它吗?
例如:
if( foo ) set( a "bar" ) endif()
缩进cmake-mode似乎由变量控制cmake-tab-width。你可以像这样调整它:
cmake-mode
cmake-tab-width
(setq cmake-tab-width 4)