5D艺术网首页
商城
|
资讯
|
作品
|
博客
|
教程
|
论坛
登录
注册
加为好友
发短消息
来自:
性别:秘密
最后登录:2008-03-06
http://zhouanle.5d.cn/
首页
|
新闻
|
话题
|
博客
|
相册
|
艺术作品
|
社交关系
|
留言板
|
社交圈
2005/08/23 | Learning Emacs
类别(求知)
|
评论
(3)
|
阅读(63)
|
发表于 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
0
评论
Comments
日志分类
首页
[105]
日记
[84]
音乐
[3]
相册
[1]
求知
[17]