wjsullivan.net

Overloading the Machine

NotesEmacs

Notes

Building Emacs

./configure --prefix=$HOME --without-toolkit-scroll-bars

Useful Emacs Lisp idioms

  • (and (bolp) (eolp)) for determining whether the current line is empty.

Useful Emacs commands

  • M-x ffap finds the file at point.
  • C-M-h marks the whole function
  • C-M-o moves the rest of the line vertically down
  • C-x C-o deletes blank lines around point.
  • C-x . sets the prefix each line starts with
  • C-x C-t transposes lines
  • C-u C-x ( appends something to the last keyboard macro
  • M-0 M-r will move to the top of the window.

Searching

Regexp search and replace can use lisp expressions to calculate the replacements. M-x replace-regexp <RET> \(x\)\|y <RET> \,(if \1 "y" "x") <RET> for example.

Registers

  • C-x r x copies the region to a register.
  • C-x r i insert something from a register.

Diary

  • i b inserts a block diary entry that covers the dates in the current region.

Code "folding"

Community

Map of #emacs regulars:

Getting extensions

emacs-w3m

% cvs -d :pserver:anonymous@cvs.namazu.org:/storage/cvsroot login CVS password: # No password is set. Just hit Enter/Return key. % cvs -d :pserver:anonymous@cvs.namazu.org:/storage/cvsroot co emacs-w3m

This page was last modified on 2011 December 20. "NotesEmacs" by John Sullivan is Copyright ©2003 - 2011, and licensed under the Creative Commons Attribution-Share Alike 3.0 United States License.