Saturday, November 5, 2011

Emacs hot key

M+g + g   goto line
C+x  left or right arrow  Go to previous or next buffer

Search and replace:


To do a queried search and replace (with a prompt for replacing each occurrence of a text string), press M-% . You will then be prompted for your search and replace strings. Emacs will find and display each occurrence of the search string and ask you for further instructions. You can respond with any of the following options:
SpacebarReplace text and find the next occurrence
DelLeave text as is and find the next occurrence
. (period)Replace text, then stop looking for occurrences
! (exclamation point)Replace all occurrences without asking
^ (caret)Return the cursor to previously replaced text

No comments:

Post a Comment