 |
Eigene Kurzbefehle erzeugen |
 |
Tastenzuordnungen, keymaps, können mit dem folgenden Befehl
festgelegt werden
(kbd-map predicate . keymaps)
Das Prädikat, predicate, spezifiziert unter welchen
Umständen die „Zuordnung“ gelten soll. Beispiele
sind: always?, in-math? und in-french?.
Der Anwender kann aber seine eigenen Prädikate definieren. Jeder
Eintrag in keymaps hat eine der folgenden Formen:
(key-combination action_1 ... action_n)
(key-combination result)
(key-combination result help-message)
Im ersten Fall sind die Aktionen action_i Scheme-Befehle, die mit der Zeichenkette key-combination
assoziiert werden. Im zweiten und dritten Fall ist result
eine Zeichenkette, die in den Text eingefügt wird, wenn die key-combination beendet ist. Im dritten Fall wird eine
zusätzliche optionale Nachricht help-message
angezeigt werden.
© 1998–2002 Joris van der Hoeven
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".