- Search
- forward searching: C-s
- backward searching: C-r
- quit searching: ret or C-a
- finding the next/previous: repeat C-s or C-r
- How to use emacs to compile and run C/C++ files
- compile the source code: "M-x compile", first; and then "g++ hello.cpp -o hello"
- open the shell window to run: "M-x shell" or "M-x eshell"; and then "./hello"
- go back to the source code window: "C-x b"
- get away of the minibuffer: "C-g"
- clear some minibuffer: "C-x k"
- only keep the window where the cursor is: "C-x 1"
- switch between windows: "C-x o"
- How to use etags
- generate the TAGS file: $ etags `find . -name "*.c" -o -name "*.cpp" -o -name "*.h"`
- let emacs know about this TAGS file: M-x visit-tag-table [location of the TAGS file]
Tuesday, April 19, 2011
Emacs commands
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment