close

Вход

Забыли?

вход по аккаунту

код для вставкиСкачать
Introduction to Emacs
(a Unix, Linux, Mac and Windows text editor)
Intro to Emacs



Emacs is a powerful, programmable text
editor.
It is available for Linux, Unix, Mac, and
Windows (from ftp://ftp.gnu.org/gnu/windows/emacs/,
xemacs.org, and others).
To run Emacs, simple type
 emacs
 emacs
test.cpp
 (or if using a GUI by double-clicking or by rightclicking)
Emacs acronyms…





Eighty Megabytes And Constantly Swapping
Eventually Mallocs All Computer Storage
Esc Meta Alt Ctrl Shift
Exceptionally Mediocre Algorithm for Computer
Scientists
Emacs Makes A Computer Slow
Intro to Emacs


Emacs is normally in insert mode.
Emacs also has a command mode.

All commands begin with either:
1.
C (the Ctrl key)
•
2.
Hold down the Ctrl key while pressing the listed key.
M (meta = either Esc or Alt)
•
•
Hold down the Alt key while pressing the listed key.
Or press and release the Esc key and then press the listed
key.
Basic Emacs Commands
C-x C-c
C-x C-s
C-x u
C-s
C-g
C-k
C-y
Quit Emacs.
Exit Emacs (saving any changes).
Undo.
Search.
Quit current command.
Kill from the cursor position to end
of line.
Yank back (what was killed).
Basic Emacs Commands
C-v
M-v
C-p
C-n
C-b
C-f
C-a
C-e
M-<
M->
move forward one screenful
move backward one screenful
move to previous line
move to next line
move backward a character
move forward a character
move to beginning of line
move to end of line
go to beginning of file
go to end of file
Basic Emacs Commands
copy-paste steps:
1.
2.
3.
4.
5.
6.
move to beginning of block
C-space or C-@
set mark
move to end of block
M-w
copy
move to where you wish to insert
C-y
yank/paste
Basic Emacs Commands
cut-paste steps:
1.
2.
3.
4.
5.
6.
move to beginning of block
C-space or C-@
set mark
move to end of block
C-w
delete/cut
move to where you wish to insert
C-y
yank/paste
1/--страниц
Пожаловаться на содержимое документа