---
title: "emacs24"
author: "marshan"
date: "2014-01-08T18:41:55Z"
tags: []
categories: ["开源软件"]
slug: "emacs24"
draft: false
lastmod: "2014-01-08T18:41:55Z"
id: 2001457
url: "https://feuyeux.iteye.com/blog/2001457"
---

C-&lt;chr&gt; means hold the CONTROL key while typing the character &lt;chr&gt; Thus, C-f would be: hold the CONTROL key and type f.

 

M-&lt;chr&gt; means hold the META or EDIT or ALT key down while typing &lt;chr&gt;. If there is no META, EDIT or ALT key, instead press and release the ESC key and then type &lt;chr&gt;. We write &lt;ESC&gt; for the ESC key.

 

Here is a summary of simple cursor-moving operations:

C-fMove forward a character

C-bMove backward a character

 

M-fMove forward a word

M-bMove backward a word

 

C-nMove to next line

C-pMove to previous line

 

C-aMove to beginning of line

C-eMove to end of line

 

M-aMove back to beginning of sentence

M-eMove forward to end of sentence

 

M-&lt; (META Less-than), which moves to the beginning of the whole text

M-&gt; (META Greater-than), which moves to the end of the whole text

On most terminals, the "&lt;" is above the comma, so you must use the shift key to type it.

On these terminals you must use the shift key to type M-&lt; also; without the shift key, you would be typing M-comma.

 

C-u 8 C-f moves forward eight characters.

C-u 8 * to insert \*\*\*\*\*\**

 

C-g to discard

 

C-x 1One window (i.e., kill all other windows).

 

&lt;DEL&gt;        Delete the character just before the cursor

C-d       Delete the next character after the cursor

 

M-&lt;DEL&gt;      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