All Manuals > Editor User Guide > 5 Emulation

5.2 Key bindings

The key bindings for KDE/Gnome editor emulation are supplied in the LispWorks library file config/msw-key-binds.lisp. This file is loaded the first time that you use KDE/Gnome editor emulation, or on startup if your preference is stored.

5.2.1 Finding the keys

There are several ways to find the key for a given command, and the command on a given key:

5.2.2 Modifying the Key Bindings

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 3.32 Key bindings. Key bindings can also be defined programmatically via editor:bind-key forms similar to those in msw-key-binds.lisp.

However, note that you must use editor:set-interrupt-keys if you wish to alter the abort gesture.

5.2.3 Accessing Emacs keys

When KDE/Gnome emulation is on, Emacs keys are still available via the prefix Ctrl+E. For example, to invoke the command WFind File, enter:

Ctrl+E Ctrl+X Ctrl+F

Note that if your keyboard is using Alt as the Meta key, then you will not have access to the Meta modifier when in KDE/Gnome emulation. However you can use Ctrl+M instead. For example, to run the command Skip Whitespace, enter:

Ctrl+M X Skip Whitespace

Emacs Command Editor Command

Arguments: key
Key sequence: Ctrl+E key in KDE/Gnome emulation

This command is only available when using KDE/Gnome editor emulation. It prompts for a keystroke key and invokes the editor command that would be bound to key if you were using Emacs emulation.

Emacs Command is newly documented in LispWorks 8.1 but is also available in older versions.

5.2.4 The Alt modifier and editor bindings

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.


Editor User Guide (Unix version) - 18 Feb 2025 15:36:53