Emacs: Xah Fly Keys Customization

By Xah Lee. Date: . Last updated: .

This page shows how to customize Emacs: Xah Fly Keys 📦.

Add Keys to Command Mode Keymap

;; put this AFTER loading Xah Fly Keys
(define-key xah-fly-command-map (kbd "x") 'myCommand)

Add Keys in Insert Mode Keymap

;; put this AFTER loading Xah Fly Keys
(define-key xah-fly-insert-map (kbd "x") 'myCommand)

Disable Change to Emacs Control Keybinding

By default, Xah Fly Keys support standard ones like copy cut paste open, etc. When disabled, no control binding is changed by Xah Fly Keys.

(setq xah-fly-use-control-key nil)

Disable Changes to Emacs Meta Keybinding

By default, Xah Fly Keys disables most of emacs meta keybinding, and add 2 or so.

You can disable this by:

(setq xah-fly-use-meta-key nil)

More customization how to

Xah Fly Keys Hooks

There are these hooks you can use:

xah-fly-command-mode-activate-hook
Hook variable. Value should be a list of function Symbols. When command mode is activated, these functions are called after activation.
xah-fly-insert-mode-activate-hook
Hook variable. Value should be a list of function Symbols. When insert mode is activated, these functions are called after activation.

What Keyspots Are Available for Personal Keybinding?

You can bind keys to any of the spots for personal commands.

You can create a whole leader key map sequence for all your personal keys. For example, start with

emacs, Xah Fly Keys, customization