Major mode for editing Kanata .kbd configuration files in Emacs.
- Syntax highlighting for Kanata directives, keywords, actions, and keys.
- Basic indentation for .kbd files.
- Commenting and uncommenting lines or regions with
M-;
. - Align keys within a
deflayer
block usingkanata-kbd-align-deflayer
(C-c C-a
).

- Place
kanata-kbd-mode.el
in your Emacs load-path. - Add the following to your
init.el
or.emacs
file:
(load-file "/path/to/your/kanata-kbd-mode.el")
Or using use-package
:
(use-package kanata-kbd-mode
:load-path "/path/to/your/kanata-kbd-mode"
:mode ("\\.kbd\\'" . kanata-kbd-mode))
Kanata is a versatile software keyboard remapper that works on Windows, macOS, and Linux. For more information, see the official Kanata repository.
- 🐘 Fediverse: @chmouel@chmouel.com (preferred)
- 🐦 Twitter: @chmouel
- 📝 Blog: https://blog.chmouel.com
This project is licensed under the GPL-3.0.