Edit

emacs快捷键整理

光标控制

快捷键 功能
C-v 向下移动一屏幕
M-v 向上移动一屏幕
C-l 将光标所在行置于屏幕中央
C-p previous lines
C-n next lines
C-b 向后移动一个字符
C-f 向前移动一个字符
M-f 向前移动一个单词
M-b 向后移动一个单词
C-a 移动到行首
C-e 移动到行尾
M-a 移动到段首
M-e 移动到段尾
M-< Move to the beginning of the whole text
M-> move to the end of the whole text

重复输入

C-u 加 要重复的数字 加命令

取消命令

, C-g

删除命令

快捷键 功能
C-d delete the next charater after the cursor
M-d kill the word after the cursor
C-k kill from the current cursor position to the end of the line
M-k kill from the current cursor postion to the end of the sentences

Undo

C-/

File

快捷键 功能
C-x C-f find a file
C-x C-s save the file
C-x s save all buffer

搜索

C-s 向后搜索 C-r向前索索

窗口

C-x 2 打开2个窗口
C-x o 切换到另一个窗口
C-M-v 移动另一个窗口的内容

帮助

C-h
C-h c for a very simple descriptation

%23emacs%u5FEB%u6377%u952E%u6574%u7406%0A@%28tech%29%0A%0A%23%23%20%u5149%u6807%u63A7%u5236%0A%0A%7C%20%20%u5FEB%u6377%u952E%20%7C%20%20%20%20%20%u529F%u80FD%7C%0A-----------%7C-----------%0AC-v%20%7C%20%u5411%u4E0B%u79FB%u52A8%u4E00%u5C4F%u5E55%0AM-v%20%7C%20%u5411%u4E0A%u79FB%u52A8%u4E00%u5C4F%u5E55%0AC-l%20%7C%20%u5C06%u5149%u6807%u6240%u5728%u884C%u7F6E%u4E8E%u5C4F%u5E55%u4E2D%u592E%0AC-p%20%7C%20previous%20lines%0AC-n%20%20%7C%20next%20lines%0AC-b%20%20%7C%20%u5411%u540E%u79FB%u52A8%u4E00%u4E2A%u5B57%u7B26%0AC-f%20%20%20%20%7C%20%u5411%u524D%u79FB%u52A8%u4E00%u4E2A%u5B57%u7B26%0AM-f%20%20%7C%20%u5411%u524D%u79FB%u52A8%u4E00%u4E2A%u5355%u8BCD%0AM-b%20%20%7C%20%u5411%u540E%u79FB%u52A8%u4E00%u4E2A%u5355%u8BCD%0AC-a%7C%u79FB%u52A8%u5230%u884C%u9996%0AC-e%20%7C%20%u79FB%u52A8%u5230%u884C%u5C3E%0AM-a%7C%20%u79FB%u52A8%u5230%u6BB5%u9996%0AM-e%7C%u79FB%u52A8%u5230%u6BB5%u5C3E%0AM-%3C%7C%20Move%20to%20the%20beginning%20of%20the%20whole%20text%0AM-%3E%20%7C%20move%20to%20the%20end%20of%20the%20whole%20text%0A%0A%23%23%20%u91CD%u590D%u8F93%u5165%0AC-u%20%u52A0%20%u8981%u91CD%u590D%u7684%u6570%u5B57%20%u52A0%u547D%u4EE4%0A%0A%23%23%20%u53D6%u6D88%u547D%u4EE4%0A%0A%60%3CESC%3E%60%20%2C%20%60C-g%60%0A%0A%23%23%20%u5220%u9664%u547D%u4EE4%0A%0A%7C%20%u5FEB%u6377%u952E%7C%20%u529F%u80FD%20%7C%0A%20%20-------%7C-------------%0A%20%60C-d%60%7C%20delete%20the%20next%20charater%20after%20the%20cursor%0A%20%60M-d%60%7Ckill%20the%20word%20after%20the%20cursor%0A%20%60C-k%60%7Ckill%20from%20the%20current%20cursor%20position%20to%20the%20end%20of%20the%20line%0A%20%60M-k%60%7Ckill%20%20from%20the%20current%20cursor%20postion%20to%20the%20end%20of%20the%20sentences%0A%0A%0A%23%23%20Undo%0A%60C-/%60%0A%0A%23%23%20File%0A%7C%u5FEB%u6377%u952E%7C%20%u529F%u80FD%7C%0A--------%7C-------------------%0AC-x%20C-f%20%7C%20find%20a%20file%0AC-x%20C-s%7C%20save%20the%20file%0AC-x%20s%20%7C%20save%20all%20buffer%20%0A%0A%23%23%u641C%u7D22%0A%60C-s%60%20%u5411%u540E%u641C%u7D22%20%60C-r%60%u5411%u524D%u7D22%u7D22%0A%0A%23%23%20%u7A97%u53E3%0A%60C-x%202%60%20%u6253%u5F002%u4E2A%u7A97%u53E3%0A%60C-x%20o%60%20%u5207%u6362%u5230%u53E6%u4E00%u4E2A%u7A97%u53E3%0A%60C-M-v%60%20%u79FB%u52A8%u53E6%u4E00%u4E2A%u7A97%u53E3%u7684%u5185%u5BB9%0A%0A%23%23%u5E2E%u52A9%0A%60C-h%60%20%20%0A%60C-h%20c%60%20for%20a%20very%20simple%20descriptation%0A