The key bindings for Mac OS X editor emulation are supplied in the LispWorks library file config/mac-key-binds.lisp
. This file is loaded the first time that you use Mac OS X editor emulation, or on startup if your preference is stored.
There are several ways to find the key for a given command, and the command on a given key:
mac-key-binds.lisp
and selection-key-binds.lisp
show the default state, just like key-binds.lisp
shows the Emacs bindings.Help > Editing
menu.As in Emacs emulation, the key sequences to which individual commands are bound can be changed, and key bindings can be set up for commands which are not, by default, bound to any key sequences.
Interactive means of modifying key bindings are described in Key bindings. Key bindings can also be defined programmatically via editor:bind-key forms similar to those in mac-key-binds.lisp
.
However, note that you must use editor:set-interrupt-keys if you wish to alter the abort gesture.
When Mac OS X editor emulation is on, most Emacs keys are still available since keystrokes like Ctrl+X
and Ctrl+S
do not clash with standard Mac OS X bindings. For example, to invoke the command WFind File
, simply enter:
Ctrl+X Ctrl+F
If you have chosen not to have an Emacs Meta key (see Using Mac OS X editor emulation) you can use Ctrl+M
instead. For example, to run the command Skip Whitespace, enter:
Ctrl+M X Skip Whitespace
In Microsoft Windows emulation on Microsoft Windows, keystrokes with the Alt
modifier key are used by the system to activate the menu bar. Therefore these keystrokes, for example Alt+A
and Alt+Ctrl+A
are not available to the editor.
Windows accelerators always take precedence over editor key bindings, so in Emacs emulation the Alt
modifier key only acts as Meta though keystrokes with Alt
if there is no accelerator which matches.
On Cocoa, the preference for the Meta key affects the operation of menu accelerators (shortcuts). If Command
is used as Meta, then it will not be available for use as an accelerator.
LispWorks Editor User Guide (Macintosh version) - 17 Aug 2017