免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1262 | 回复: 0
打印 上一主题 下一主题

Emacs introduction [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-11-10 17:06 |只看该作者 |倒序浏览

Introduction
Emacs is a powerful text editor. Especially suited for programming, it uses intensively the keyboard shortcuts.
This page is a short summary of the most used shortcuts in Emacs. If you are configuring your Linux, you will appreciate that
Emacs also works in text mode.
File access
Ctrl-x Ctrl-f
Open file
Ctrl-x Ctrl-s
Save
Buffer control
Ctrl-x k
Kill buffer (close file)
Ctrl-x b
Switch to an other buffer
Ctrl-x 2
Split the window vertically to see an extra buffer
Ctrl-x 3
Split the window horizontally to see an extra buffer
Ctrl-x 0
Hide the current window
Ctrl-x 1
Show only the current window
Ctrl-x o
Jump to an other window
Text editing
Ctrl-Space
Marks beginning of a block
Alt-w
Marks end of block and copy
Ctrl-w
Marks end of block and cut
Ctrl-y
Paste
Ctrl-a
Go to the beginning of the line
Ctrl-e
Go to the end of the line
Ctrl-k
Kill end of line (after the cursor)
General
Ctrl-g
Cancel the command you are typing
Ctrl-x Ctrl-c
Quit emacs
Ctrl-_
Undo
TAB
Automatic indentation (source code) while editing
TAB
Automatic completion while selecting a file or while typing a command
in the mini-buffer
Alt-x
Type a command in the mini-buffer
Alt-x c-mode
Change major mode to c-mode
Alt-x global-font-lock-mode
Switch the 'global font lock mode' (highlights syntax)
Search and replace
Ctrl-s
Incremental forward search (press Ctrl-s again to search further)
Ctrl-r
Incremental backward search (press Ctrl-r again to search further)
Alt-%
Search and replace
Multiple files search
Simple search
Alt-x grep
Perform a 'grep' search
Alt-x grep-find
Perform a search using 'find' and 'grep'
Tags (for programmers)
find . -name "*.[ch]" | etags -
Make a TAGS index file for every file whose name ends with
'.c' or '.h', starting from the current directory (this is a shell
command !)
Alt-x visit-tags-table
Load a TAGS file
Alt-.
Find a tagCtrl-u Alt-.continue find tag
tags-search
Search through all files listed in the tags table
tags-query-replace
Search and replace through all files listed in the tags table
Alt-,
continue last tag search
Files comparison
Alt-x ediff
Compares two files
Spell check
Alt-x ispell-buffer
Spell check for the current buffer
Help
Ctrl-h ?
General help functions
Ctrl-h f
Describe the command you type
Ctrl-h a
apropos ... help based on a keyword
Ctrl-h m
Help on the current major mode


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/1916/showart_5077.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP