VineLinux3.0を利用しています。EmacsでCプログラミングを行って
おりますが、Windowsの秀丸との違いでなかなか思うようにインデントが
付かなくて困っております。
1.Emacsではこのように表示される。
int main( int argc, char* argv[] )
{
int i;
for( i=0; i<100; i++ )
{
printf( "i=%d", i );
}
return( 0 );
}
2.このようにインデントを4に表示させたい。
int main( int argc, char* argv[] )
{
int i;
for( i=0; i<100; i++ )
{
printf( "i=%d", i );
}
return( 0 );
}
3.そこで、GNU Emacsガイドブックをよんで、.emacs.elに次の記述を追加しました。
;; タブ幅
( setq-default tab-width 4 )
;; C言語用インデント
( setq-default c-argdecl-indent 4 )
( setq-default c-indent-level 4 )
( setq-default c-continued-statement-offset 4 )
( setq-default c-continued-brace-offset -4 )
( setq-default c-brace-offset 0 )
( setq-default c-brace-imaginary-offset 0 )
( setq-default c-label-offset -4 )
.emacs.elファイルを修正しましたけれども、思ったように反映されていません。
どのように修正をおこなったらよろしいでしょうか?
ファイルを修正したら、何かコマンドをたたくのでしょうか?
---------------------
MaruyamaTetsuya
maruyama@xxxxxxxxxxxx
---------------------