Learning Emacs

      求知 2005-8-23 15:41
不久前在blog上提到为了使JDEE要学习Emacs (原文在这里), 今天下午才断断续续把Emacs tutorial给看完了, 内容整理如下. (C-h t打开Emacs自带的教程)

*** Move around ***
C-f move forward a character
C-b move backward a character
M-f move forward a word
M-b move backward a word
C-n move to next line
C-p move to previous line
C-a move to beginning of line
C-e move to end of line
M-a move back to beginning of sentence
M-e move forward to end of sentence
C-l clear screen and redisplay all the text, moving the text around the cursor
to the center of the screen.
M-< moves to the beginning of the whole text
M-> moves to the end of the whole text

*** Insert/delete ***
<Delback> delete the character just before the cursor
C-d delete the next character after the cursor
M-<Delback> kill the word immediately before the cursor
M-d kill the next word after the cursor
C-k kill from the cursor position to end of line
M-k kill to the end of the current sentence
C-Space C-w mark a scope, then kill the select all
C-y     yank the killed text
M-y     replaces that yanked text with the previous kill
C-x u     undo

*** Files ***
C-x C-f find a file
C-x C-s save the file

*** Buffers ***
C-x C-b list buffer
C-x b TUTORIAL goto buffer TUTORIAL
C-x s     save some buffer

*** Searching ***
C-s     forward search
C-r     reverse search

*** Multiple windows ***
C-x o     switch between the windows
C-M-v     scroll other window
C-x 4 C-f find a file in other window
C-x 1 one window (i.e., kill all other windows)

*** Get helps ***
C-h get online help
C-h m    to see how Text mode differs from Fundamental mode.
C-h ? Emacs will tell you what kinds of help it can give
C-h c    describ key briefly
C-h f    describe a function
C-h a    command Apropos
C-h i    read On-line Manuals (a.k.a. Info)

*** Others ***
C-u n repeat command, C-u 8 C-f moves forward eight characters
C-g stop a command
C-x C-c exit Emacs
C-x    Character eXtend. Followed by one character.
M-x    Named command eXtend. Followed by a long name.
    M-x replace-string
C-z    "suspends" Emacs; that is, it returns to the shell but does not destroy the Emacs.

To get out of the recursive editing level, type ESC ESC ESC
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}