Next Prev Up Top Contents Index

10.1.3 Binding commands to keystrokes

You can bind existing editor commands to different keystrokes, using editor:bind-key .

Supplied with LispWorks is the file config/key-binds.lisp , which shows the standard Emacs key bindings for LispWorks.

The following example shows how to rebind ? so that it behaves as an ordinary character in the echo area of a Common LispWorks tool -- this can be useful if your symbol names include question marks.

(editor:bind-key "Self Insert" #\? :mode "Echo Area")

Since ? is then no longer available for help, you may wish to rebind help to Ctrl+? .

(editor:bind-key "Help on Parse" #\C-? :mode "Echo Area")

If you use PC Mode, then see the file config/msw-key-binds.lisp for the corresponding editor:bind-key . forms.


LispWorks User Guide - 18 Feb 2003

Next Prev Up Top Contents Index