Emacs: Xah Fly Keys Customization
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
- Emacs: Xah Fly Keys, Add Keys to Switch Mode
- Emacs: Xah Fly Keys, Add a Global Leader Key
- Emacs: Xah Fly Keys, Modify Leader Key Sequence
- Emacs: Xah Fly Keys, Setup Keys for Major Mode
- Emacs: Xah Fly Keys, Key for Org-Mode
- Emacs: Xah Fly Keys, Create a New Layout
- Emacs: Xah Fly Keys Escape Key
- Emacs: Xah Fly Keys Mode Status Indicator
- How to Make the CapsLock Key do Home Key
- Emacs: Xah Fly Keys, Emacs Daemon
- Emacs: Xah Fly Keys, How to Indent
- Emacs: Xah Fly Keys, Russian Layout
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.
- Shift+letter is mostly empty while in command mode.
- Meta+letter are now mostly empty.
- Ctrl+letter has lots empty spots.
You can create a whole leader key map sequence for all your personal keys. For example, start with
- Space Space
emacs, Xah Fly Keys, customization
- Emacs: Xah Fly Keys Customization
- Emacs: Xah Fly Keys, Add Keys to Switch Mode
- Emacs: Xah Fly Keys, Add a Global Leader Key
- Emacs: Xah Fly Keys, Modify Leader Key Sequence
- Emacs: Xah Fly Keys, Setup Keys for Major Mode
- Emacs: Xah Fly Keys, Key for Org-Mode
- Emacs: Xah Fly Keys, Create a New Layout
- Emacs: Xah Fly Keys Escape Key
- Emacs: Xah Fly Keys Mode Status Indicator
- How to Make the CapsLock Key do Home Key
- Emacs: Xah Fly Keys, Emacs Daemon
- Emacs: Xah Fly Keys, How to Indent
- Emacs: Xah Fly Keys, Russian Layout