From http://www.math.uh.edu/~bgb/emacs_keys.html