isearch-forward" incrementally search
forward, "C-s"
("C-r" searches in reverse)
isearch-forward-regexp" regular
expression incremental search forward
query-replace" runs a query replace
command where you are prompted for a replace on a match
("M-%"). From here, you can enter a recursive
edit session with "C-r", make changes and and
go back to your query-replace with "M-C-c".
replace-string" does a straight replace of
a string from the cursor to the end of the file
center-line" will center a line based on
fill-column width
indent-region" will fix the indentation on
a region ("M-C-\")
TAB key will do the proper indentation for a
variety of programming modes by inserting tabs or spaces if
(setq-default indent-tabs-mode nil) is in your
~/.emacs file
transpose-chars" and
"transpose-words" transpose characters and
words, respectively ("C-t" and
"M-t")
bookmark-set" sets a bookmark at the
current cursor position ("C-x r m")
bookmark-jump" jumps to a bookmark
("C-x r b")
bookmark-menu-list" list all your
bookmarks do allow manipulation and navigation ("C-x r
l")
C-x l" will report line location and
"C-x =" gives the column location of your
cursor.
quoted-insert", bound to
"C-q". The next character after a
"C-q" will be inserted. Up to three octal
digits can also be entered.
~" appended at
the end of the filename. To make versioned backups (a la VMS), stoke
your "~/.emacs" file with this beauty:
(setq version-control t) ; Allow numbered backups
As you merrily edit your file, Emacs saves changes periodically into a
file that is the same name as the one you are editing, but with
"#" signs in the beginning and end. Should your
system meet face-to-face with the dark side (ie, crash and burn), your latest
changes will be in this file.
To recover these changes, you use the command
"recover-file" and give it your
filename. Skippy!
; Turn on font-lock in all modes that support it
(if (fboundp 'global-font-lock-mode)
(global-font-lock-mode t))
; Maximum colors
(setq font-lock-maximum-decoration t)
M-C-f" and "M-C-b"
to find them in a forward and backward direction, respectively.
etags - a way to mark source code
files so that you can jump to the exact location of a function in a
file not necessarily open yet. To use it, do the following:
etags *.?xx" to get all files whose
file extention ends in "xx" (this creates a
file called TAGS in your current dir)
M-x visit-tags-table
RET" and enter the name (TAGS by default)
M-." for "find-tag"