Emacs
ph
111.91.137.50 (토론)님의 2011년 9월 7일 (수) 14:24 판
- my Dot emacs
- How to Define Keyboard Shortcuts in Emacs
- emacs command list
- emacs wiki - ctrl+tab buffer cycling
- GNU emacs manual
- tab설정 :
(setq-default tab-width 4)
- http://www.emacswiki.org/emacs/EmacsChannelFaq 이 설정찾은 링크. 굉장히 좋은듯. read-it-later
- bookmark ★★★
- M-x shell 보다 M-x term이 훨씬 낫다. eshell이 가장 보편적.
- M-/ auto completion
- encoding 변경: C-x C-m f 인코딩명 출처
- using Emacs for programming 간단한 디버거 사용법 포함
- auto indentation
- changing default C indentation style C-x . / C-M-q / C-M-\ / c-set-style / c-default-style
- indenting C (emacs wiki)
- key combinations cheat sheet
- query-replace about recursive editing
- C-x z runs the command repeat
Repeat most recently executed command. With prefix arg, apply new prefix arg to that command; otherwise, use the prefix arg that was used before (if any). This command is like the `.' command in the vi editor.
If this command is invoked by a multi-character key sequence, it can then be repeated by repeating the final character of that sequence. This behavior can be modified by the global variable `repeat-on-final-keystroke'.
- C-x `
Visit the locus of the next error message or match. (from http://www.gnu.org/software/libtool/manual/emacs/Compilation-Mode.html)
- compiling and testing programs
- Ten Essential Emacs Tips very very valuable!!!
- C-x C-q toggle-read-only ref manual
- 특정 문자를 개행문자로 바꾸려면 : C-q C-j 로 repl-s (from here)
- hide and show like vim's folding. (cf. folding mode)
- emacs 쓸 때 제일 불편한게 jump.
- c-u c-space 몇번 누르다보면 어지간하면 나온다
- c-x c-space 위에꺼랑 비슷한데 global하다. 다른 파일로도 뜀. 너무 산만하게 뛰는게 단점.
- c-x r space [a-z] : vim 에서 m[a-z]
- c-x r j [a-z] : 위에서 저장해놓은 곳으로 뛴다.
- 이동시 항상 c-u 가 관건이다. 4, 16, 64... 의 감이 중요하다.
- M-x comment-region
- C-x r t is more easier and maintainable.
M-: (set-display-table-slot standard-display-table 'wrap ?\ )
- Notice that after the `\’ there is a whitespace character (actually the backslash is optional for the whitespace, but it is used here for clarity), but you can add whatever you want
- http://www.emacswiki.org/emacs/LineWrap