----------------------------------------------------------------------------- * Key bindings for GNU Emacs * [ emacs, gemacs, emacs-nox ] ----------------------------------------------------------------------------- THE VERY BASICS: Help: ^x, h Saving and exiting: ^x, ^s and ^x, ^c Finding a command: ^h, a Repeating a command: ^u Beginning of line: ^a Beginning of file: Esc, < End of line: ^e End of file: Esc, > One word forward: Esc, f To another window: ^x, o One word backward: Esc, b To another buffer : ^x, b Removing ("cutting") a line: ^k Selecting an area: ^[space] Removing an area: ^w (and move to end of area) Pasting an area: ^y Undo: ^x, u (or ^-) Execute command: Esc, x, name-of-the-command, enter Search: ^s, type the search string, look for cursor (out: ^g next: ^s) Backwards search: ^r, otherwise like normal search Replace: Esc, x, replace-string, OLD_STRING, enter, NEW_STRING, enter ----------------------------------------------------------------------------- FILES: Inserting a file: ^x, i Toggling read-only: ^x, ^q Write to file (Save As): ^x, ^w ----------------------------------------------------------------------------- WINDOWS: (For example looking at the same file in two places simultaneously) Opening a new window: ^x, 2 Move to next window: ^x, o Closing another window: ^x, 1 Closing the active window: ^x, 0 ----------------------------------------------------------------------------- BUFFERS: (You can have several full-size windows open at the same time if you use buffers to move between them) Change buffer: ^x, b ( + name) List all buffers: ^x,^b ( you get rid of the list by closing that window) Killing (i.e. closing) a buffer: ^x, k ( + name ) ----------------------------------------------------------------------------- SHELL: Suspending emacs: ^z Run a shell command: Esc, ! Back with shell command: fg ----------------------------------------------------------------------------- MORE ABOUT EMACS: Help: ^h http://www.geek-girl.com/emacs/emacs.html Tutorial: ^h, t http://wizard.ucr.edu/wizard_project/software/emacs1win.html ----------------------------------------------------------------------------- E.g. ^c means pressing the Ctrl key and the C key simultaneously Esc, ? means pressing first the Esc key and then the ? key ----------------------------------------------------------------------------- Any command can be given either by its key binding - if such exists - or by giving the command Esc,x and writing the name of the command, e.g. Esc,x,kill-buffer. Emacs can fill in the words for you if you write the first few letters and press tabulator.