学习GNU Emacs命令速查表(三)

    版权声明:对于本博客所有原创文章,允许个人、教育和非商业目的使用,但务必保证文章的完整性且不作任何修改地以超链接形式注明原始作者、出处及本声明。

    博客地址http://blog.csdn.net/shuxiao9058

    原始作者:季亚


第八章简章的文字排版和特效编辑

8-1:制表位命令速查表

键盘操作

命令名称

动作

()

edit-tab-stops

打开一个名为“*Tab Stops*”的编辑缓冲区以便改变制表位的设置情况

()

untabify

把全部制表位都转换为对应个数的空格

()

tabify

在不影响文本版面的情况下把3个及3个以上的空格视需要转换为制表位间隔

 

8-2:缩进命令速查表

键盘操作

命令名称

动作

C-j

newline-and-indent

移动到下一行并缩进使其与当前行有相同的缩进级别

()

paragraph-indent-text-mode

第一行缩进且段落之间没有空行的一个主模式

()

paragraph-indent-minor-mode

相当于文本缩进模式的副模式

()

fill-individual-paragraphs

根据段落的缩进情况对它们进行段落重排

C-x Tab

indent-rigidly

缩进一列;前面加上“C-u”或“M-n”以进行指定的列数缩进

C-M-\

indent-region

按第一行的缩进设置把文本块作整体的缩进

M-m

back-to-indentation

把光标移动到文本行的第一个字符

C-M-o

split-line

在光标位置处分拆文本行,并把它的后半截缩进到光标所在的那一列

()
  Edit
Text PropertiesIndentationIndent More

increase-left-margin

增加编辑缓冲区左缩进层次,默认为四个字符

()
  Edit
Text PropertiesIndentationIndent Less

decrease-left-margin

减少编辑缓冲区左缩进层次,默认为四个字符

()
  Edit
Text PropertiesIndentationIndent Right More

decrease-right-margin

减少编辑缓冲区右缩进层次,默认为四个字符

()
  Edit
Text PropertiesIndentationIndent Left More

increase-right-margin

增加编辑缓冲区右缩进层次,默认为四个字符

C-x .

set-fill-prefix

把左边界到光标位置之间的字符串设置为加在段落每一行之前的缩进前导字符串;在第一列输入这个命令,表示此后将再插入缩进前导字符串

 

8-3:居中命令速查表

键盘操作

命令名称

动作

M-s

center-line

把光标所在的文本行居中

M-S

center-paragraph

把光标所在的段落居中

()

center-region

把当前定义的文本块居中

()
  Edit
Text PropertiesJustificationCenter

set-justification-center

把选定的文本居中

 

8-4:矩形编辑命令速查表

键盘操作

命令名称

动作

C-x r k

kill-rectangle

删除一个矩形并把它保存起来

C-x r d

delete-rectangle

删除一个矩形但不把它保存起来

C-x r y

yank-rectangle

在光标位置插入最后一次删除的矩形

C-x r c

clear-rectangle

使用空格清除矩形区域的内容,并且不保存它

C-x r o

open-rectangle

在矩形区域里插入一个空白矩形

C-x r r r

copy-rectangle-to-register

复制矩形区域到寄存区r(这时r是任何字符)

C-x r i r

insert-register

把保存在寄存区r里的矩形区域内容插入到当前位置(这时r是任何字符)

()

delete-whitespace-rectangle

如果一个矩形包含空白字符,将其删除,并缩小矩形

C-x r t string Enter

string-rectangle

改变被标记的矩形,将其内容发放字符串(如果字符串比矩形太宽或太窄,尺寸将做相应的改变)

()

string-insert-rectangle

提示输入字符串,并插入矩形

 

8-5:图形模式与文本模式的对比

键盘操作

文本模式

图形模式

图形模式下的等价命令

Enter

插入一个空白行

把光标移动到下一行

C-o”组合键插入一个空白行

C-d

删除字符并把其余文本左移

把字符替换为一个空格,不移动其余文本

C-c C-d”组合键相当于文本模式下的“C-d”组合键

Space

把文本向右移,插入一个空格

把光标向右移,沿途经过的所有字符都将被替换为空格

无;请回到文本模式去插入空格a

C-k

删除当前行上的文本;按两次“C-k”组合键将删除这一行

删除当前行上的文本,但不删除这一行

删除某行需回到文本模式进行操作或者使用delete-rectangle命令

Tab

插入制表符并把后续文本向右移

向右移动光标,但不影响沿途经过的文本

要想插入与一个制表位等价的空格,请回到文本模式进行操作

C-n

移动到下一行

向下移动,但光标的列坐标保持不变

()

C-p

移动到上一行

向上移动,但光标的列坐标保持不变

()

C-f

向文件尾方向移动一个字符

向右移动一个字符

()

C-b

向文件头方向移动一个字符

向左移动一个字符;到达行首后就不再移动

()

a.如果想插入的是一个空白块,就得使用open-rectangle之类的命令。具体用法请参考本章前面对这一命令的介绍。另外,如果想在行尾插入空格,就得使用“C-f”之类的组合键。

 

8-6:图形模式编辑命令速查表

键盘操作

命令名称

动作

()

picture-modeoredit-picture

进入图形模式

C-c C-c

picture-mode-exit

退出图形模式,返回此前的编辑模式

C-c ^

picture-movement-up

把默认绘制方向的设置为上

C-c .

picture-movement-down

把默认绘制方向的设置为下

C-c >

picture-movement-right

把默认绘制方向的设置为右

C-c <

picture-movement-left

把默认绘制方向的设置为左

C-c `

picture-movement-nw

把默认绘制方向的设置为左上

C-c `

picture-movement-ne

把默认绘制方向的设置为右上

C-c /

picture-movement-sw

把默认绘制方向的设置为左下

C-c \

picture-movement-se

把默认绘制方向的设置为右下

C-c C-f

picture-motion

沿默认绘制方向向前移动光标

C-c C-b

picture-motion-reverse

沿默认绘制方向向后移动光标

C-f

picture-forward-column

把光标向右移动一个字符

C-b

picture-backward-column

把光标向左移动一个字符

C-n

picture-move-down

把光标向下移动一个字符

C-p

picture-move-up

把光标向上移动一个字符

C-d

picture-clear-column

把光标下的字符转换为一个空格,不把其右侧的文本向左移

C-c C-d

delete-char

删除光标下的字符,把其右侧的文本向左移

C-k

picture-clear-line

删除当前行上的文本,但即使连续按两次也不会删除这一行

C-o

picture-open-line

插入一个空白行

C-c C-wr

picture-clear-rectangle-to-register

清除矩形区域的内容并把它保存到寄存区r

C-u C-c C-wr

picture-clear-rectangle-to-register

删除矩形区域并把它保存到寄存区r

C-c C-xr

picture-yank-rectangle-from-register

把保存在寄存区r里的矩形区域内容粘贴到当前位置

C-c C-r

picture-draw-rectangle

在当前区域周围绘制一个矩形

C-c C-y

picture-yank-rectangle

粘贴矩形

C-c C-k

picture-clear-rectangle

清除矩形

C-c Tab

picture-set-tab-stops

设置制表位只在图形模式下适用 (“!”、“-”、 和“~”指默认制表位)

M-Tab

picture-tab-search

移动到下一个图形模式选项卡

 

8-7:大纲模式命令速查表

键盘操作

命令名称

动作

()

outline-mode

切换大纲模式

C-c C-n
  Headings
Next

outline-next-visible-heading

移动到下一个标题

C-c C-p
  Headings
Previous

outline-previous-visible-heading

移动到上一个标题

C-c C-f
  Headings
Next Same Level

outline-forward-same-level

移动到下一个同级的标题

C-c C-b
  Headings
Previous Same Level

outline-backward-same-level

移动到上一个同级的标题

C-c C-u
  Headings
Up

outline-up-heading

移动到上一级别的标题层次

C-c C-t
  Hide
Hide Body

hide-body

隐藏全体正文行

C-c C-a
  Show
Show All

show-all

显示被隐藏起来的所有东西

C-c C-q
  Hide
Hide Sublevels All

hide-sublevels

显示第一级标题

C-c C-o
  Hide
Hide Other

hide-other

隐藏当前子树以外的所有文字和标题。显示第一级别标题

C-c @

outline-mark-subtree

标记当前标题和下级所有文字和标题

C-c C-^

outline-promote

提升当前标题一个级别

C-c C-v

outline-demote

降低当前标题一个级别

C-c C-d
  Hide
Hide Subtree

hide-subtree

隐藏某标题的全体下级小标题及其相关正文

C-c C-c
  Hide
Hide Entry

hide-entry

隐藏某标题的正文部分(不包括它的下级小标题和那些小标题的正文部分)

C-c C-l
  Hide
Hide Leaves

hide-leaves

隐藏某标题的正文部分,同时隐藏它全体下级小标题的正文部分(只留下标题)

C-c C-s
  Show
Show Subtree

show-subtree

显示某给定标题的下级的下级小标题和它的相关文本

C-c C-e
  Show
Show Entry

show-entry

显示某给定标题的相关文本(不包括它的下级小标题及它们的正文部分)

C-c C-k
  Show
Show Branches

show-branches

显示某标题的正文及全体下级小标题的全部正文

C-c Tab
  Show
Show Children

show-children

显示某标题的下一级小标题(不包括正文文本)

 

第三版新增内容

 

8-8:绘图模式编辑命令速查表

键盘操作

命令名称

动作

()

artist-mode

进入绘图模式

C-c C-c

artist-mode-off

退出绘图模式,返回此前的编辑模式

C-f

artist-forward-char

向右移动一个字符(如果在一行的末尾,就在当前行中添加字符)

C-b

artist-backward-char

向左移动一个字符(如果在一行的开始,就什么事都不做)

C-n

artist-next-line

下移一列(如果在缓冲区的末尾,就添加新行到当前缓冲区)

C-p

artist-previous-line

上移一列(如果在缓冲区的开始,就什么事都不做)

C-c C-a C-o或按鼠标中键

artist-select-operation

选择一个操作(按“TAB”键显示操作清单)

C-c C-a f`
  Artist menu
EditFlood-fill

artist-select-op-flood-fill

选择填充操作

C-c C-a C-k
  Artist menu
EditCut

artist-select-op-cut-rectangle

在某一区域周围绘制一个矩形,然后剪切之

C-c C-a M-w
  Artist menu
EditCopy

artist-select-op-copy-rectangle

在某一区域周围绘制一个矩形,然后复制之

C-c C-a C-y
  Artist menu
EditPaste

artist-select-op-paste

粘贴你所复制的,不管是不是使用鼠标操作的

C-c C-a v
  Artist menu
DrawingVaporize

artist-select-op-vaporize-line

清除所选择的一条线(文字行,而不是文件中的一行)

C-c C-a C-d
  Artist menu
DrawingErase

artist-select-op-erase-char

选择擦除操作(鼠标将是清除器)

C-c C-a S
  Artist menu
DrawingSpray-can

artist-select-op-spray-can

选择油漆桶操作

C-c C-a e
  Artist menu
DrawingEllipse

artist-select-op-ellipse

绘制椭圆

C-c C-a p
  Artist menu
DrawingPoly-line

artist-select-op-poly-line

绘制折线

C-c C-a r
  Artist menu
DrawingRectangle

artist-select-op-rectangle

绘制矩形

C-c C-a l
  Artist menu
DrawingLine

artist-select-op-line

绘制直线

C-c C-a C-r
  Artist menu
SettingsRubber banding

artist-toggle-rubber-banding

如果开启(默认),当拉伸图形时显示形状;否则(没有开启),将显示端点

C-c C-a C-l
  Artist menu
SettingsSet Line

artist-select-line-char

选择画线时所使用的字符(默认是“-”)

C-c C-a C-f
  Artist menu
SettingsSet Fill

artist-select-fill-char

选择字符来填充形状(默认是空格)

第九章Emacs设置排版标记

9-1:各种标记模式下的注释

如果在下列模式里敲入“M-;

Emacs将插入

HTML模式

<!-- -->

HTML helper模式

<!-- -->

SGML模式

<!-- -->

nxml模式

<!-- -->

psgml模式

<!-- -->

LaTeX模式

%% (在空行上)

% (在有内容的行上)

 

9-2nroff配对模式支持的配对命令组

起始标记
(由用户输入)

收尾标记
(由Emacs自动插入)


使用情况

.(b

.)b

me宏定义包

.(l

.)l

me宏定义包

.(c

.)c

me宏定义包

.(x

.)x

me宏定义包

.(z

.)z

me宏定义包

.(d

.)d

me宏定义包

.(q

.)q

me宏定义包

.(f

.)f

me宏定义包

.LG

.NL

ms宏定义包

.LD

.DE

ms宏定义包

.CD

.DE

ms宏定义包

.BD

.DE

ms宏定义包

.DS

.DE

ms宏定义包

.DF

.DE

ms宏定义包

.FS

.FE

ms, mm宏定义包

.KS

.KE

ms宏定义包

.KF

.KE

ms宏定义包

.LB

.LE

mm宏定义包

.AL

.LE

mm宏定义包

.BL

.LE

mm宏定义包

.DL

.LE

mm宏定义包

.ML

.LE

mm宏定义包

.RL

.LE

mm宏定义包

.VL

.LE

mm宏定义包

.RS

.RE

ms宏定义包

.TS

.TE

tbl预处理器

.EQ

.EN

eqn预处理器

.PS

.PE

pic预处理器

.BS

.BE

mm宏定义包

.na

.ad b

torff指令

.nf

.fi

torff指令

.de

..

torff指令

 

9-3nroff模式命令速查表

键盘操作

命令名称

功能

()

nroff-mode

进入nroff模式

ESC n

forward-text-line

把光标移动到下一个文本行

ESC p

backward-text-line

把光标移动到上一个文本行

ESC ?

cout-text-lines

统计文本块中的文本行数

()

electric-nroff-mode

进入一个副编辑模式。在这个模式里,输入必须配对出现的nroff命令组中的第一个,按“C-j”组合键,Emacs就会自动插入该配对命令组中的第二个命令

C-j

electric-nroff-newline

只能用在nroff配对模式里,自动插入一组必须配对出现的troff宏定义标记中的第二个

ESC ;

indent-for-comment

在文本里插入一个注释标记

 

9-4TEXLATEX命令速查表

键盘操作

命令名称

功能

()

tex-mode

根据文件内容进入TEX模式或LATEX模式

()

plain-tex-mode

进入TEX模式

()

latex-mode

进入LATEX模式

C-j

tex-terminate-paragraph

插入两个硬回车(标准的段落结束标记),并检查段落的语法

C-c {

tex-insert-braces

插入两个花括号,然后把光标放在它们中间

C-c }

up-list

插入光标在两个花括号中间,就把光标移到紧跟右括号的后面

()
  TeX
Validate Buffer

tex-validate-buffer

检查编辑缓冲区有无语法错误

()
  TeX
Validate Region

tex-validate-region

检查文本块有无语法错误

C-c C-f
  TeX
TeX File

tex-file

保存当前文件,然后对其进行TEXLATEX排版处理

C-c C-b
  TeX
TeX Buffer

tex-buffer

对编辑缓冲区进行TEXLATEX排版处理

C-c C-l
  TeX
TeX Recenter

tex-recenter-output-buffer

把排版信息画面显示在屏幕上,(至少)会显示最后一条出错信息

C-c C-k
  TeX
TeX Kill

tex-kill-job

中断TEXLATEX排版处理工作

C-c C-p
  TeX
TeX Print

tex-print

打印TEXLATEX的排版输出

C-c C-q
  TeX
Show Print Queue

tex-show-print-queue

查看打印队列

C-c C-e

latex-close-block

只能用在LATEX模式里,自动插入某个命令组中的第二个命令

()

tex-close-latex-block

提供关闭元素命令对

C-c Tab`
  TeX
BibTeX File

tex-bibtex-file

对编辑缓冲区进行BIBTEX排版处理(一个自动创建目录索引的系统)

C-c C-v
  TeX
TeX View

tex-view

查看DVI输出

()
  TeX
Print (alt printer)

tex-alt-print

使用自定义变量“tex-alt-dvi-print-command”指定的打印机打印.dvi输出文件

C-c C-o

latex-insert-block

插入块(提示输入块的名称和选项)

C-c C-u

tex-goto-last-unclosed-latex-block

向后查找文件未闭合块,并将光标移动最近的未闭合块

M-Enter

latex-insert-item

插入“\”项目

()

latex-split-block

插入结束到当前块,开始到新块

"

tex-insert-quote

插入的TeX风格的引号

 

9-5Html-helper模式命令速查表

键盘操作

命令名称

动作

C-u

universal-argument

当加在其他标记命令的前面时,把标签插入到文本块的两端

M-Tab

tempo-complete-tag

补足当前标签

C-c C-z v
  HTML
Load This Buffer in Browser

browse-url-of-file

在默认浏览器中显示该文件

C-c C-z u
  HTML
Browse URL at Point

browse-url-default-browser

在默认浏览器中打开光标位置处超链接的URL地址

C-c M-h 1
  HTML
Insert HeadersHeader 1

tempo-template-html-header-1

插入<h1></h1>标签

C C-c M-h 2
  HTML
Insert HeadersHeader 2

tempo-template-html-header-2

插入<h2></h2>标签

C-c M-h 3
  HTML
Insert HeadersHeader 3

tempo-template-html-header-3

插入<h3></h3>标签

C-c M-h 4
  HTML
Insert HeadersHeader 4

tempo-template-html-header-4

插入<h4></h4>标签

C-c M-h 5
  HTML
Insert HeadersHeader 5

tempo-template-html-header-5

插入<h5></h5>标签

C-c M-h 6
  HTML
Insert HeadersHeader 6

tempo-template-html-header-6

插入<h6></h6>标签

M-Enter
  HTML
Insert Text ElementsParagraph

tempo-template-html-paragraph

插入<p></p>标签

C-c C-a l
  HTML
Insert HyperlinksHyperlink

tempo-template-html-hyperlink

插入<a href=""></a>标签

C-c C-a n
  HTML
Insert HyperlinksTarget

tempo-template-html-link-target

插入<a name=""></a>标签

C-c Enter
  HTML
Insert Text ElementsLine Break

tempo-template-html-line-break

插入一个换行符“<br>

C-c =
  HTML
Insert Text ElementsHorizontal Line

tempo-template-html-horizontal-line

插入一个换行符水平标尺“<hr>

C-c C-z t
  HTML
Insert TimestampDelimiter

html-helper-insert-timestamp-delimiter-at-point

插入时间戳分隔符

C-c C-h t
  HTML
Insert Structural ElementsTitle

tempo-template-html-title

插入<title></title>标签

C-c Tab a
  HTML
Insert Inlined ImagesImage

tempo-template-html-image

插入<img src="">标签

C-c C-l u
  HTML
Insert List ElementsUnordered List

tempo-template-html-unordered-list

插入<ul><li></li></ul>标签

C-c C-l o
  HTML
Insert List ElementsOrdered List

tempo-template-html-ordered-list

插入<ol><li></li></ol>标签

C-c C-l t
  HTML
Insert List ElementsDefinition Item

tempo-template-html-definition-item

插入<dt><dd>标签

C-c C-l l
  HTML
Insert List ElementsList Item

tempo-template-html-item

插入<li></li>标签

C-c C-l d
  HTML
Insert List Elements Definition List

tempo-template-html-definition-list

插入<dl><dt><dd></dl>标签

C-c C-l m
  HTML
Insert List Elements Menu List

tempo-template-html-menu-list

插入<menu><li></li></menu>标签

C-c C-l r
  HTML
Insert List ElementsDirectory List

tempo-template-html-directorylist

插入<dir><li></li></dir>标签

C-c C-l i
  HTML
Insert List ElementsList Item

html-helper-smart-insert-item

插入<li></li>标签

C-c C-f z
  HTML
Insert Form ElementsRest Form

tempo-template-html-reset-form

插入<input type="RESET">标签

C-c C-f b
  HTML
Insert Form ElementsButton

tempo-template-html-button

插入<input type="BUTTON">标签

C-c C-f m
  HTML
Insert Form ElementsSubmit Form

tempo-template-html- submit-form

插入<input type="SUBMIT">标签

C-c C-f s
  HTML
Insert Form ElementsSelections

tempo-template-html-selections

插入<select><option></select>标签

C-c C-f o
  HTML
Insert Form ElementsOption

tempo-template-html-option

插入<option>标签

C-c C-f v
  HTML
Insert Form ElementsOption with Value

tempo-template-html-option-with-value

插入<option value="">标签

C-c C-f i
  HTML
Insert Form ElementsImage Field

tempo-template-html-input-image-field

插入<input type="IMAGE">标签

C-c C-f r
  HTML
Insert Form ElementsRadiobutton

tempo-template-html-input-radiobutton

插入<input type="RADIO">标签

C-c C-f c
  HTML
Insert Form ElementsCheckbox

tempo-template-html-checkbox

插入<input type="CHECKBOX">标签

C-c C-f p
  HTML
Insert Form ElementsText Area

tempo-template-html-text-area

插入<textarea></textarea>标签

C-c C-f f
  HTML
Insert Form ElementsForm

tempo-template-html-form

插入<form></form>标签

C-c C-f t `
  HTML
Insert Form ElementsText Field

tempo-template-html-text-field

插入<input type="TEXT">标签

C-c C-f h
  HTML
Insert Form ElementsHidden Field

tempo-template-html-hidden-field

插入<input type="HIDDEN">标签

C-c M-l s
  HTML
Insert Logical StylesStrong

tempo-template-html-strong

插入<strong></strong>标签

C-c M-l e
  HTML
Insert Logical StylesEmphasized

tempo-template-html-emphasized

插入<em></em>标签

C-c M-l b
  HTML
Insert Logical StylesBlockquote

tempo-template-html-blockquote

插入<blockquote></blockquote>标签

C-c M-l p
  HTML
Insert Logical StylesPreformatted

tempo-template-html-preformatted

插入<pre></pre>标签

C-c C-p s
  HTML
Insert Physical StylesStrikethru

tempo-template-html-strikethru

插入<s></s>标签

C-c C-p f
  HTML
Insert Physical StylesFixed

tempo-template-html-fixed

插入<tt></tt>标签

C-c C-p u
  HTML
Insert Physical StylesUnderline

tempo-template-html-underline

插入<u></u>标签

C-c C-p i
  HTML
Insert Physical StylesItalic

tempo-template-html-italic

插入<i></i>标签

C-c C-p b
  HTML
Insert Physical StylesBold

tempo-template-html-bold

插入<b></b>标签

C-c C-p c
  HTML
Insert Physical StylesCenter

tempo-template-html-center

插入<center></center>标签

C-c C-p l
  HTML
Insert Physical StylesSpanning Class

tempo-template-html-spanning-class

插入<span class=""></span>标签

C-c C-p 5
  HTML
Insert Physical StylesSpanning Style

tempo-template-html-spanning-style

插入<span style=""></span>标签

C-c C-s a
  HTML
Insert Logical StylesAddress

tempo-template-html-address

插入<address></address>标签

C-c M-l d
  HTML
Insert Logical StylesDefinition

tempo-template-html-definition

插入<dfn></dfn>标签

C-c M-l v
  HTML
Insert Logical StylesVariable

tempo-template-html-variable

插入<var></var>标签

C-c M-l k
  HTML
Insert Logical StylesKeyboard Input

tempo-template-html-keyboard

插入<kbd></kbd>标签

C-c M-l r
  HTML
Insert Logical StylesCitation

tempo-template-html-citation

插入<cite></cite>标签

C-c M-l x
  HTML
Insert Logical StylesSample

tempo-template-html-sample

插入<samp></samp>标签

C-c M-l c
  HTML
Insert Logical StylesCode

tempo-template-html-code

插入<code></code>标签

C-c C-h b
  HTML
Insert Structural ElementsBase

tempo-template-html-base

插入<base href="">标签

C-c C-h l
  HTML
Insert Structural ElementsLink

tempo-template-html-link

插入<link href="">标签

C-c C-h m
  HTML
Insert Structural ElementsMeta Name

tempo-template-html-meta-name

插入<meta content="">标签

C-c C-h n
  HTML
Insert Structural ElementsNextid

tempo-template-html-nextid

插入<nextid>标签

C-c C-h i
  HTML
Insert Structural ElementsIsindex

tempo-template-html-isindex

插入<isindex>标签

C-c C-h B
  HTML
Insert Structural ElementsBody

tempo-template-html-body

插入<body></body>标签

C-c C-h H
  HTML
Insert Structural ElementsHead

tempo-template-html-head

插入<head></head>标签

C-c C-t t
  HTML
Insert TablesTable

tempo-template-html-table

插入<table></table>标签

C-c C-t p
  HTML
Insert Tableshtml table caption

tempo-template-html-html-table-caption

插入<caption></caption>标签

C-c C-t d
  HTML
Insert TablesTable Data

tempo-template-html-table-data

插入<TD></TD>标签

C-c C-t h
  HTML
Insert TablesTable Header

tempo-template-html-table-header

插入<TH></TH>标签

C-c C-t r
  HTML
Insert TablesTable Row

tempo-template-html-table-row

插入<TR></TR>标签

 

第三版新增内容

 

9-6HTMLHelper模式插入字符实体速查表


按键操作


命令名称


字符实体

网页上呈现
字符

C-c >

tempo-template-html-greater-than

&gt;

C-c <

tempo-template-html-less-than

&lt;

C-c &

tempo-template-html-ampersand

&amp;

&

C-c u

tempo-template-html-u`-(&&ugrave;)

&ugrave;

ù

C-c i

tempo-template-html-i`-(&&igrave;)

&igrave;

ì

C-c o

tempo-template-html-o`-(&&ograve;)

&ograve;

ò

C-c E

tempo-template-html-e'-(&&eacute;)

&eacute;

é

C-c e

tempo-template-html-e`-(&&egrave;)

&egrave;

è

C-c a

tempo-template-html-a`-(&&agrave;)

&agrave;

à

C-c SPC

tempo-template-html-nonbreaking-space

&nbsp;

nonbreaking space

C-c -

tempo-template-html-soft-hyphen

&shy;

soft hyphen

C-c @

tempo-template-html-copyright

&copy;

©

C-c $

tempo-template-html-registered

&reg;

®

C-c "

tempo-template-html-quotation-mark

&quot;

"

C-c #

tempo-template-html-ascii-code

Enter the 3-digit code for the desired character

specified character

 

9-7:字符编码对照表

C-x 8前缀

按键操作


ISO
简写风格


符号实体


网页上呈现字符

C-x 8 "

"

&acute;

´

C-x 8 ' a

' a

&aacute;

á

C-x 8 'A

'A

&Aacute;

Á

C-x 8 ' e

' e

&eacute;

é

C-x 8 ' E

' E

&Eacute;

É

C-x 8 ' i

' i

&iacute;

í

C-x 8 ' I

' I

&Iacute;

Í

C-x 8 ' o

' o

&oacute;

ó

C-x 8 ' O

' O

&Oacute;

Ó

C-x 8 ' u

' u

&uacute;

ú

C-x 8 ' U

' U

&Uacute;

Ú

C-x 8 ' y

' y

&yacute;

C-x 8 ' Y

' Y

&Yacute;

C-x 8 ` a

` a

&agrave;

à

C-x 8 ` A

` A

&Agrave;

À

C-x 8 ` e

` e

&egrave;

è

C-x 8 ` E

` E

&Egrave;

È

C-x 8 ` i

` i

&igrave;

ì

C-x 8 ` I

` I

&Igrave;

Ì

C-x 8 ` o

` o

&ograve;

ò

C-x 8 ` O

` O

&Ograve;

Ò

C-x 8 ` u

` u

&ugrave;

ù

C-x 8 ` U

` U

&Ugrave;

C-x 8 ^ a

^ a

&acirc;

â

C-x 8 ^ A

^ A

&Acirc;

Â

C-x 8 ^ e

^ e

&ecirc;

ê

C-x 8 ^ E

^ E

&Ecirc;

Ê

C-x 8 ^ i

^ i

&icirc;

î

C-x 8 ^ I

^ I

&Icirc;

Î

C-x 8 ^ o

^ o

&ocirc;

ô

C-x 8 ^ O

^ O

&Ocirc;

Ô

C-x 8 ^ u

^ u

&ucirc;

û

C-x 8 ^ U

^ U

&Ucirc;

Û

C-x 8 " "

" "

&uml;

¨

C-x 8 " a

" a

&auml;

ä

C-x 8 " A

" A

&Auml;

Ä

C-x 8 " e

" e

&euml;

ë

C-x 8 " E

" E

&Euml;

Ë

C-x 8 " i

" i

&iuml;

ï

C-x 8 " I

" I

&Iuml;

Ï

C-x 8 " o

" o

&ouml;

ö

C-x 8 " O

" O

&Ouml;

Ö

C-x 8 " u

" u

&uuml;

ü

C-x 8 " U

" U

&Uuml;

Ü

C-x 8 " s

" s

&szlig;

ß

C-x 8 " y

" y

&yuml;

ÿ

C-x 8 " Y

" Y

&Yuml;

C-x 8 ~ ~

 

&not;

¬

C-x 8 ~ a

~ a

&atilde;

ã

C-x 8 ~ A

~ A

&Atilde;

Ã

C-x 8 ~ d

~ d

&eth;

C-x 8 ~ D

~ D

&ETH;

C-x 8 ~ n

~ n

&ntilde;

ñ

C-x 8 ~ N

~ N

&Ntilde;

Ñ

C-x 8 ~ o

~ o

&otilde;

õ

C-x 8 ~ O

~ O

&Otilde;

Õ

C-x 8 ~ t

~ t

&thorn;

C-x 8 ~ T

~ T

&THORN;

C-x 8 / /

 

&divide;

÷

C-x 8 o

/ /

&ring;

°

C-x 8 / a

/ a

&aring;

å

C-x 8 / A

/ A

&Aring;

Å

C-x 8 / e

/ e

&aelig;

æ

C-x 8 / E

/ E

&AElig;

Æ

C-x 8 / o

/ o

&oslash;

ø

C-x 8 / O

/ O

&Oslash;

Ø

C-x 8 , ,

~~

&cedil;

¸

C-x 8 , c

~c

&ccedil;

ç

C-x 8 , C

~C

&Ccedil;

Ç

 

9-8:标点符号编码对照表

C-x 8前缀 按键操作

符号实体

网页上呈现字符

C-x 8 1 / 2

&frac12;

1/2

C-x 8 1 / 4

&frac14;

1/4

C-x 8 3 / 4

&frac34;

3/4

C-x 8 SPC

&nbsp;

nonbreaking space

C-x8 !

&iexcl;

¡

C-x 8 $

&curren;

¤

C-x 8 +

&plusmn;

±

C-x 8 -

&shy;

soft hyphen

C-x8 .

&middot;

·

C-x 8 <

&laquo;

«

C-x 8 =

&macr;

¯

C-x 8 >

&raquo;

»

C-x8 ?

&iquest;

¿

C-x 8 |

&brvbar;

|

C-x 8 c

&cent;

¢

C-x 8 C

&copy;

©

C-x 8 L

&pound;

£

C-x 8 P

&para;

C-x 8 R

&reg;

®

C-x 8 S

&sect;

§

C-x 8 u

&micro;

µ

C-x 8 x

&#215;

x

C-x 8 Y

&yen;

¥

C-x 8 ^ 1

&sup1;

1

C-x 8 ^ 2

&sup2;

2

C-x 8 ^ 3

&sup3;

3

C-x 8 _ a

&ordf;

a

C-x 8 _ o

&ordm;

o

9-9HTML模式插入字符实体速查表


按键操作


命令名称


字符实体

网页上呈现
字符

C-c >

tempo-template-html-greater-than

&gt;

C-c <

tempo-template-html-less-than

&lt;

C-c &

tempo-template-html-ampersand

&amp;

&

C-c u

tempo-template-html-u`-(&&ugrave;)

&ugrave;

ù

C-c i

tempo-template-html-i`-(&&igrave;)

&igrave;

ì

C-c o

tempo-template-html-o`-(&&ograve;)

&ograve;

ò

C-c E

tempo-template-html-e'-(&&eacute;)

&eacute;

é

C-c e

tempo-template-html-e`-(&&egrave;)

&egrave;

è

C-c a

tempo-template-html-a`-(&&agrave;)

&agrave;

à

C-c SPC

tempo-template-html-nonbreaking-space

&nbsp;

nonbreaking space

C-c -

tempo-template-html-soft-hyphen

&shy;

soft hyphen

C-c @

tempo-template-html-copyright

&copy;

©

C-c $

tempo-template-html-registered

&reg;

®

C-c "

tempo-template-html-quotation-mark

&quot;

"

C-c #

tempo-template-html-ascii-code

Enter the 3-digit code for the desired character

specified character

 

9-10HTML模式命令速查表

键盘操作

命令名称

动作

()

html-mode

进入HTML模式

C-c C-tSGMLInsert Tag

sgml-tag

插入一个标签,提示输入属性。如果输入html作为标签名称,则插入一个html模板文件

C-c TabSGMLToggle Tag Visibility

sgml-tags-invisible

在文件中隐藏/显示标签

C-c C-vSGMLView Buffer Contents

browse-url-of-buffer

在默认浏览器中显示该编辑缓冲区

C-c C-s

html-autoview- mode

如果这个模式开启(这个命令可以切换),当文件在Emacs保存的时候,会自动在浏览器中显示

C-c 8

sgml-name-8bit-mode

如果打开,特定击键操作被捕捉插入Latin-1字符并被适当的实体。详情请参阅“在HTML模式下的字符编码”。

C-c C-fSGMLForward Tag

sgml-skip-tag-forward

向前移动到同一级别的下一个标签

C-c C-bSGMLBackward Tag

sgml-skip-tag-backward

向后移动到同一级别的下一个标签

C-c DelC-c C-dSGMLDelete Tag

sgml-delete-tag

将光标放在标签上或标签前,删除单个标签或成对删除标签

C-c 1

html-headline-1

插入一个<h1>标签

C-c 2

html-headline-2

插入一个<h2>标签

C-c 3

html-headline-3

插入一个<h3>标签

C-c 4

html-headline-4

插入一个<h4>标签

C-c 5

html-headline-5

插入一个<h5>标签

C-c 6

html-headline-6

插入一个<h6>(用于脚注文本)标签

C-c Enter

html-paragraph

插入一个 <p>标签

C-c C-c hHTMLHref Anchor

html-href-anchor

插入一个超链接

C-c C-c nHTMLName Anchor

html-name-anchor

插入一个锚,这样可以创建链接到页面的锚定部分

C-c C-c u HTMLUnordered List

html-unordered-list

创建一个无序列表

C-c C-c o HTMLOrdered List

html-ordered-list

创建一个编号的列表

C-c C-c lHTMLList Item

html-list-item

添加一个项目至列表

C-c C-c iHTMLImage

html-image

插入 <img src="">标签 ,并且在光标放置输入图片的文件名

C-c C-jHTMLLine Break

html-line

插入一个换行符 (<br>).

C-c C-c - HTMLHorizontal Rule

html-horizontal-rule

插入一个水平标尺(<hr>).

C-c C-c r

html-radio-buttons

插入一组单选按钮。Emacs提示输入组的名字、值、是否应该进行检查,以及相关的文本。按“C-G”组合键完成组的创建.

C-c C-c c HTMLCheckboxes

html-checkboxes

插入一组复选框。 Emacs提示输入组的名字、值、是否应该进行检查,以及相关的文本。按“C-G”组合键完成组的创建.

C-c ?SGMLDescribe Tag

sgml-tag-help

在光标所在位置提供简短的标签文字描述

第十章 Emacs中的宏

10-1:与宏有关Emacs命令

键盘操作

命令名称

动作

C-x (

kmacro-start-macro

开始录制一个宏

F3

kmacro-start-macro-or-insert-counter

开始录制一个宏。如果在录制一个宏时,按下则插入一个计数器

C-x )

kmacro-end-macro

结束录制一个宏

F4

kmacro-end-or-call-macro

结束录制一个宏(如果宏还在录制)或调用最后一个键盘宏

C-x e

kmacro-end-and-call-macro

执行最后一次录制的宏

C-x C-k n

name-last-kbd-macro

给刚才录制的宏起个名字(做好保存这个宏的准备)

()

insert-kbd-macro

向一个文件中插入一个已命名的宏

()

macroname

执行一个已命名的键盘宏

C-x q

kbd-macro-query

在定义宏里插入一个查询

C-u C-x q

()

在宏定义里插入一个递归编辑

C-M-c

exit-recursive-edit

退出递归编辑

C-x C-k b

kmacro-bind-to-key

为一个宏绑定到一个按键(C-x C-k 0-9a-z是预留给宏绑定用的)。持续到当前会话结束

C-x C-k Space

kmacro-step-edit-macro

当单步调试一个宏的时候,编辑该宏(在我们看来,接口过于复杂)

C-x C-k l

kmacro-edit-lossage

将最后100次按键设为宏(在这期间的鼠标点击事件不起作用)

C-x C-k e

edit-kbd-macro

按“C-x”组合键编辑最后录制的按键宏,“M-x”编辑已命名宏,“C-h l”编辑Lossage宏(最后键入的100个键盘输入称为Lossage),或者将宏绑定到按键

C-x C-k Enter

kmacro-edit-macro

编辑最后一个键盘宏

C-x C-k C-e

kmacro-edit-macro-repeat

再次编辑最后一个键盘宏

C-x C-k C-t

kmacro-swap-ring

将最后一个键盘宏与之前的键盘宏对调

C-x C-k C-d

kmacro-delete-ring-head

将最后一个键盘宏从宏环中删除

C-x C-k C-p

kmacro-cycle-ring-previous

将先前的宏移至宏环

C-x C-k C-n

kmacro-cycle-ring-next

将下一个宏移至宏环

C-x C-k r

apply-macro-to-region-lines

在某一区域内的每一行应用这个宏

第十一章Emacs进行定制

11-1:特殊字符的表达记号

特殊字符表达记号

定义情况

\C-x

C-x (其中“x”是任意字符)

\C-[\e

Esc;转义符

\M

Meta

\C-j\n

Newline;转行符

\C-m\r

Enter;回车符

\C-i\t

Tab;制表符

 

11-2富模式下字体命令

命令

被选择的字体

M-g d

默认

M-g b

粗体

M-g i

斜体

M-g l

粗斜体

M-g u

下划线

M-g o

其他 (允许你通过字体名称选择字体)

 

第三版新增内容

 

11-3:特定键在ELISP中的命名

ELisp中的命名

 

ELisp中的命名

DELbackspace

Backspace

 

kp-0 .. kp-9

键盘数字键0-9

delete

Delete

 

kp-enter

数字键盘上的回车键

down

向下方向键

 

left

向左方向键

end

End

 

next

Page Down

f1 .. f35

功能按键F1-F35

 

prior

Page Up

home

Home

 

right

向右方向键

help

Help

 

up

向上方向键


备注:本文大部分内容摘自学习GNU Emacs(第二版),文中紫色部分摘自Learning GNU Emacs, 3rd Edition,并由本人翻译整理而得。
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值