EMACS Cheat Sheet

C-x-f opens file C-x b new buffer C-v next screen C-npbf next, previous line, back forward char M-bf next, previous word C-x 1 One window C-x 2 Split horiz C-x 3 Split vert C-x o next window C-M-v next page in bottom window C-spc start mark C-w kill marked section M-x append-to-buffer copy marked section to another buffer C-k kill the current line C-y yank the killed line back to here M-y cycle though previous yanks (after a C-y) C-x-u UNDO! C-_ UNDO! C-g cancel minibuffer C-x-f find file C-x-s save file C-x-b list buffers C-x s C-x-c quit, asking to save unmodified buffers M-x run extended name command C-h m docs on current major mode C-s start search (C-s again to next match) delbback to previous match return to end search C-r search-backward C-h f describe function C-h k C-p describe the second command C-a go to the beginning-of-line C-e go to the end-of-line C-n go to next-line C-p go to previous-line C-k kill the current line C-o open-line M-x shell run bash shell M-! cmd run the shell command M-1 M-! cmd run command with output into buffer (setq rails-ws:port 3003)