Emacs

From Wiki
Revision as of 18:28, 4 February 2011 by Scott (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

To fix backspace in emacs, put the following line into the .emacs file in your home directory:

(keyboard-translate ?\C-h ?\C-?)

To find text:

C-s <text>

This starts searching forward. To search backward, use C-r. Use another C-s to jump to next occurrence.

To replace every occurrence of STRING with NEWSTRING.

M-x replace-string <RET> STRING <RET> NEWSTRING <RET>

Search-replace: (see http://www-2.cs.cmu.edu/cgi-bin/info2www?(emacs)Query%20Replace )

M-% STRING <RET> NEWSTRING <RET>

space to replace, delete to skip, return to stop

To jump to end of buffer:

M->

To require emacs to open in the current command line window:

emacs -nw