Emacs ????

??

C- ????? Ctrol ?

M- ?? Meta ? (?????Meta ?????ALT ESC ??????)
DEL ????? (?? ??(Delete) key)
RET ?????
SPC ?????
ESC ??Escape?
TAB ??Tab?
? “C-M-” (or “M-C”) ?????????????? Control ? Meta ???.

????
C-p ? C-b ? C-f ? C-n ??????????????????????????

??? C-p (Prev line)
.
.
.
??? C-b …. ?…. ??? C-f (Forward character)
(Backward ) .
.
.
??? C-n (Next line)

“P N B F”??????????????????????????????
P ?? previous??????
N ?? next??????
B ?? backward??
???
F ??? forward????

??Emacs
???GNU Emacs????????? emacs
??Emacs
??Emacs? C-z
????Emacs C-x C-c

??
?????Emacs C-x C-f
??????? C-x C-s
?????? C-x s
?????????????? C-x i
?????????????? C-x C-v
???????????? C-x C-w
Version control checkin/checkout C-x C-q

????
???????????????C-h??F1?????????????????Emacs???????C-h t??????
?????? C-x 1
?????? C-M-v
????????a?????? C-h a
???????? C-h c
???????? C-h f
????????? C-h m

????
?????????? C-g
???????????? M-x recover-file
???? C-x u?C-_
?????????? M-x revert-buffer
Redraw garbaged scree n C-l

????(Incremental Search)
???? C-s
???? C-r
??????? C-M-s
????????? C-M-r
?????????? M-p
?????????? M-n
?????? RET
?????????? DEL(Backspace)
???????? C-g
????????????C-s?C-r???????

??(Motion)
?????? C-f
?????? C-b
????? M-f
????? M-b
???? C-p
???? C-n
??? C-a
??? C-e
??? M-a
??? M-e
??? M-{
??? M-}
??? C-x [
??? C-x ]
?????? C-M-f
?????? C-M-b
????? C-M-a
????? C-M-e
????? M-<
????? M->
?????? C-v
?????? M-v
??????????????? C-x <
??????????????? C-x >
?????????? C-u C-l

Killing?Deleting
??delete?? C-d
??delete?? DEL(Backspace)
??delete??? M-d
??delete??? M-DEL(Backspace)
??delete??? M-0 C-k
??delete??? C-k
??delete??? C-x DEL(Backspace)
??delete??? M-k
??delete?????? M– C-M-k
??delete?????? C-M-k
Kill?? C-w
?????Kill Ring M-w
Kill????????????? M-z <char>
???yank???kill??? C-y
???kill??????????kill??? M-y

???Marking?
?????? C-SPC?C-@
?????????????????? C-x C-x
????????????????? M-@
???? M-h
???? C-x C-p
??????? C-M-@
?????? C-M-h
??????? C-x h

Query Replace
??????????? M-%
????????????? M-x query-replace-regexp
???????????? SPE
????????????? ,
????????????? L(Backspace)
?????????????? !
?????? RET
????????? C-r
????????? C-M-c

????Multiple Windows?
?When two commands are shown?the second is for “other frame”?
???????? C-x 1
???????? C-x 2 C-x 5 2
???????? C-x 3
?????? C-x 0 C-x 5 0
?????? C-M-v
?????????? C-x o
??????????? C-x 4 b C-x 5 b
??????????? C-x 4 C-o C-x 5 C-o
????????????? C-x 4 f C-x 5 f
??????????????? C-x 4 r C-x 5 r
????????dired?? C-x 4 d C-x 5 d
????????tag C-x 4 . C-x 5 .
?????? C-x ^
?????? C-x {
?????? C-x }
???Formatting?
???????????? TAB
??????????? C-M-
???????????? C-M-q
Indent region rigidly arg. Columns C-x TAB
??????????? C-o
???????? C-M-o
??????????????? C-x C-o
????????? M-^
??????????? M-
??????????????? M-SPC
Fill paragraph M-q
Set fill column C-x f
?????????? C-x .
???? M-g

Case Change
????????? M-u
????????? M-l
???????????? M-c
?????????? C-x C-u
?????????? C-x C-l

The Minibuffer
(the following keys are defined in the minibuffer)
????????? TAB
????????? SPC
????????? RET
????????????? ?
?????????????? M-p
?????????????? M-n
?????????????????? M-r
?????????????????? M-s
????????? C-x ESC ESC

???Buffer?
??????? C-x b
??????? C-x C-b
Kill???? C-x k

???Transposing?
???? C-t
??? M-t
??? C-x C-t
????? C-M-t

?????Spelling Check?
??????????? M-$
????????? M-x ispell-origin
????????? M-x ispell-buffer

?? (Tags)
???? M-.
???????????? C-u M-.
?????????? M-x visit-tags-table
Regexp search on all files in tabs table M-x tags-search
??????????-?? M-x tags-query-replace
??????????????-?? M-,

Shells
????shell?? M-?
????????sheel?? M-|
??shell?????? C-u M-|
????????shell M-x shell

???Rectangles?
?????????? C-x r r
Kill?? C-x r k
???? C-x r y
??????, ???????? C-x r o
???? C-x r c
???????????????? C-x r t

??????Regular Expressions?
???????????? .
??????? *
??????? +
??????? ?
????
???or? |
?? (…)
??n??????? n
At work break b
Not at work break B

????Register?
???????? C-x r s
????????? C-x r i
?????????? C-x r SPC <num>
?????????????? C-x r j <num>

????Keyboard Macros?
????????? C-x (
???????? C-x )
??????????? C-x e
????????? C-u C-x (
????????? M-x name-last-kbd-macro
??????Lisp M-x insert-kbd-macro

Tags
Tags ??????????? ???????. ???emacs???, ??vi ???????. emacs????????.

????????, ???????????, ???, tin ????, ?? ~/tin-1.3beta ??. ?????.

??, ?emacs cd????: ?M-x cd

??, ??tag table. tag table ???????, ??????(variable/function call) ????????????. ????, emacs???????????????. ??????????, ??TAGS (??)

M-! etags *.c

M-! ???external shell command???. etags??emacs?????. ????????source code?????.

vi?????ctags????, ????????tags (??). ??????emacs, ?????.

? ?, ?????? ??????C ?????main()??, ??????main()?????. ??????M-. ??emacs???tag table???. ??????cd????, ???enter???. ????main, emacs??????main(){ … }?.

?? ????????????????????, ???????????????, M-. ENTER ????.

?? emacs??? (??????????, emacs?????), ????? C-u M-. ????.

?????????, M-SPC ???, ??????????????. ????????.

????

?????????

Ispell

???????????????????????: M-x ispell-buffer RET, ?????ispell????C-h????????????????

?????????????M-$??????????????

???????????????????ESC TAB(M-TAB)?

?????Ispell, ???????????M-x ispell-kill-ispell??????????

??????

flyspell

?????????????????????????spell-check on the fly??????Ispell?

M-x flyspell-mode RET
Tips

??buffer?????

M-x toggle-read-only

?C?????tab

C-q TAB : ?TAB?????????

[From] http://eidolon.iblog.com/post/483/2094 ????

Leave a Reply

Your email address will not be published. Required fields are marked *