Emacs + Shells : Quickies
Here are a bunch of quick keystrokes that make my life easier in both emacs and within my shell. Both bash and tcsh can use these keystrokes, and make life on the command line much more pleasant.
C-a - Go to beginning of the line C-e - Go to end of the line
C-k - Kill (cut) from current cursor position to the end of the line C-y - Yank (paste) what you just killed
< - Set a mark C-w - Kill from previously set mark to current cursor position (can also be yanked back with C-y)
(The above four commands are *very* powerful, and can save you lots of keystrokes, I use it a lot for instance to move a file to a slightly different filename, type say
Then go the beginning of "filename" and press C-k, then press C-y >SPC
It's almost like magic...)