Emacs: Xah Fly Keys, Modify Leader Key Sequence
Change One Leader Key Sequence
Suppose you want to change
【leader a b】
to backward-char
.
;; put this AFTER loading Xah Fly Keys (define-key xah-fly-leader-key-map (kbd "a b") 'backward-char)
Create a Whole Keymap to Leader Key
Here's a example of creating a whole keymap.
Let's say you want
- 【leader 8 space】 for cmd1
- 【leader 8 3】 for cmd2
- 【leader 8 a】 for cmd3
;; put this AFTER loading Xah Fly Keys (define-key xah-fly-leader-key-map (kbd "8") 'nil) (define-key xah-fly-leader-key-map (kbd "8 SPC") 'cmd1) (define-key xah-fly-leader-key-map (kbd "8 3") 'cmd2) (define-key xah-fly-leader-key-map (kbd "8 a") 'cmd3)
Here's example making Space Space as your personal leader key sequence. By default Space Space switches to insert mode. Now, you can do Space Space Space to switch to insert mode.
;; put this AFTER loading Xah Fly Keys (define-key xah-fly-leader-key-map (kbd "SPC") 'nil) (define-key xah-fly-leader-key-map (kbd "SPC SPC") 'xah-fly-insert-mode-activate) (define-key xah-fly-leader-key-map (kbd "SPC 3") 'cmd2) (define-key xah-fly-leader-key-map (kbd "SPC a") 'cmd3)
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