Emacs Notes

Regular Expressions

Match

\` match empty string at the beginning of buffer or string
\' match empty string at end
\= match empty string at point
\b match empty string at word boundary
\B match empty string not at word boundary
\< match empty string at beginning of word
\> match empty string at end of word
\w match word character
\W match non-word character

Groups

\| alternative
\( ... \) group
\(?: ... \) "shy" group (does not record match)
\d matched group d

Example

Transpose associative array asssignment. 'key' => 'value' becomes 'value' => 'key'

replace-regexp: '\([A-Za-z]+\)'[ ]+=>[ ]+'\([A-Z_]+\)' -> '\2' => '\1'

Getting Emacs

Emacs at Savannah (CVS)

*nix GTK

cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs
cd emacs
./configure --with-gtk
make bootstrap && make && make install
    

MacOSX

Same as above with this exception:
        ./configure --enable-carbon-app