프로젝트마다 들여쓰기 간격이 틀립니다. 혹시 emacs에서는 특정 파일이나 특정 디렉토리 아래에서 들여쓰기 간격을 원하는 데로 바꿀 수 있는 방법은 없는지요?
vim에서는 각 파일마다 vim: 으로 시작하는 주석을 달아서 옵션을 동적으로 바꾸긴 했는데 emacs는 잘 모르다 보니 찾기도 쉽지 않네요.
답변 부탁드립니다.
Example 1 - file 의 끝부분에.
int main() { return 0; } /* Local Variables: c-basic-offset: 2 End: */
Example 2 - file 첫 줄에
/* -*- c-basic-offset:2; -*- */ int main() { return 0 }
emacs info 중에서
Emacs -> Customization -> Variables -> File variables 참조하세요.
c-basic-offset 등은 CC mode info 참조.
http://hj-lee.github.io/
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
Example 1 - file 의 끝부분에.[code:1]
Example 1 - file 의 끝부분에.
Example 2 - file 첫 줄에
emacs info 중에서
Emacs -> Customization -> Variables -> File variables 참조하세요.
c-basic-offset 등은 CC mode info 참조.
http://hj-lee.github.io/
댓글 달기