emacs问题求教----有关C程序格式# Unix - 噫吁兮,危乎高哉
M*d
1 楼
在emacs 中, 对于for 或if 后面的行, 格式一般是这样的:
for ( ....)
{
printf(....);
.......
我怎样才能把它变成:
for ( ....)
{
printf(....);
我查了一些书, 书上说只需对c-brace-offset有所设, 一般设为负值, 以抵消
c-continued-statement-offset. 但我已在.emacs 文件中加入了如下几句:
(setq c-continued-statement-offset 4)
(setq c-brace-offset -4)
但似乎无效, 不知各位大侠有何建议
for ( ....)
{
printf(....);
.......
我怎样才能把它变成:
for ( ....)
{
printf(....);
我查了一些书, 书上说只需对c-brace-offset有所设, 一般设为负值, 以抵消
c-continued-statement-offset. 但我已在.emacs 文件中加入了如下几句:
(setq c-continued-statement-offset 4)
(setq c-brace-offset -4)
但似乎无效, 不知各位大侠有何建议