如何更改Emacs中的縮放級別?
我通過傳統的網際網路手段找不到任何答案,所以我希望有一些幫助.
Emacs對我來說現在傾向於在大括號上做縮排,如下所示:
if( ... ) { }
我覺得令人難以置信的刺激性我從來沒有見過這種行為.無論如何,我期待的行為是,
if( ... ) { }
如果有人知道如何修改,那將是非常感謝.
基本上你想要的
(setq c-default-style "bsd" c-basic-offset 4)
更多縮排命令:
M-x c-set-style RET style RET
Select predefined indentation style
style. Type ? when entering style to
see a list of supported styles; to
find out what a style looks like,
select it and reindent some C code.
C-c C-o symbol RET offset RET
Set the indentation offset for
syntactic symbol symbol
(c-set-offset). The second argument
offset specifies the new indentation
offset.
來源:ofollow,noindex" target="_blank">http://www.phys.ufl.edu/docs/emacs/emacs_251.html
也:http://www.gnu.org/software/emacs/manual/html_node/ccmode/Indentation-Commands.html
程式碼日誌版權宣告:
翻譯自:http://stackoverflow.com/questions/2542040/how-to-change-brace-indentation-levels-in-emacs