Thursday, November 19, 2009

Emacs Basic Commands

Basic emacs command
===================
ctrl-x ctrl-f (open file)

ctrl-x ctrl-s (save file)

ctrl-c a (resize width to 90 chars)

ctrl-c n (reformat indentation)

ctrl-s (perform searching, search next)

ctrl-r (search backwards)

ctrl-w (highlight the word starting at the cursor)

ctrl-g (cancel pending command)

alt-x grep (perform search disk)
command line will display: grep -nH -e
add: slaveId * (to search for slaveId at current directory, all files)
modify: grep -r -nH -e slaveId * (to search for slaveId at current and
all sub-directories, all files)

ctrl-c 9 (perform make command at current directory)

ctrl-c o (choose similar filename, normally for switching between
header/implementation files)

ctrl-x b (display buffer list, issue ctrl-s to scroll to next file,
to go to the first file in the list)

No comments:

Post a Comment