GNU TeXmacsUser manualReferenceAboutEnglish·Français·Deutsch·Español·Italiano·中文
定制快捷键

下面这行代码用来指定键盘布局

(kbd-map . keymaps)

使用:mode选项,你可以指定使键盘布局生效的条件。比如,这行代码:

(kbd-map (:mode in-math?) . keymaps)

指定了只在数学模式下生效的键盘布局。keymaps 这个列表中的元素有下面三种形式:

(key-combination action_1 … action_n)
(key-combination result)
(key-combination result help-message)

第一行中,action_i是和key-combination相关的Scheme代码。第二行和第三行中的 result是key-combination结束之后插入的字符串。第三行中,key-combination 结束之后,将会显示help-message。

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".