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.
当我将 C++ 文件编辑.emacs为 4 个空格而不是默认的当前 2 个空格时,我想更改缩进样式。我不希望样式更改为其他语言,仅适用于 C++。如何在我的.emacs配置中定义它?
.emacs
用这个:
(add-hook 'c++-mode-hook (lambda () (setq c-basic-offset 4)))