Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/ops/newpc_emacs.txt
Дата изменения: Mon Jun 2 00:34:36 1997
Дата индексирования: Fri Feb 28 16:30:23 2014
Кодировка:

Поисковые слова: http www.badastronomy.com bad tv foxapollo.html
EMACS EDITOR CHEAT SHEET (KAP 5/31/97)

C-g abort partially typed or executing command
C-h help

C-x C-f open a new buffer and read in a file
C-x C-s save current buffer to original file name
C-x C-w write current buffer to a different file name
C-x C-c leave EMACS (prompts for save if modified)
C-x i insert a file into current buffer

C-s searches forward (C-s searches for next occurance)
C-r searches backward
M-x replace-string does a change all
M-x query-replace does changes one at a time (SPC accepts change
DEL skips change)
C-space begin a mark
C-w wipes text between mark and where cursor is now
C-y yanks back what has been wiped (can yank multiple copies)
M-y after a C-y, yanks back through stack of old wipes

C-v scroll to next screen
M-v scroll to previous screen
M-< move to top of buffer
M-> move to bottom of buffer

C-d delete character (forward)
C-k deletes from the cursor to the end of the line

C-x u undo

C-x C-u convert region that is marked to all caps
C-x C-l convert region that is marked to no caps
M-x capitalize-region capitalizes first letter of each word

C-x 2 create a 2nd visable buffer window (one on top of the other)
C-x 3 create a 2nd visable buffer window (one next to the other)
C-x 1 kill all windows except the one that is current
C-x 0 kill the window that is current
------------------------------------------------------------------------
EMACS DIRED (DIRectory EDitor)

enter dired by C-x C-f, but type a directory name instead of a file name

in dired type: d mark for deletion
u unmark for deletion
x make marked deletions
C for copy
R for rename (can be used to move file to another dir)
v for view
f for edit

once you have selected a file to edit you then have multiple buffers

display a list of buffers by typing C-x C-b
select a buffer by moving down to that line and hitting the space bar

jump directly to another buffer by typing C-x b
you will be prompted for the buffer name (directory or file name)

kill a buffer by typing C-x k