diff --git a/modules/os/tty/README.org b/modules/os/tty/README.org index 6d210c05b..c952d2e18 100644 --- a/modules/os/tty/README.org +++ b/modules/os/tty/README.org @@ -11,6 +11,7 @@ This module configures Emacs for use in the terminal, by providing: - Cursor-shape changing across evil states (requires a terminal that supports it). - Mouse support in the terminal. +- Support for the [[https://sw.kovidgoyal.net/kitty/keyboard-protocol/][Kitty keyboard protocol]] in supported terminals. ** Maintainers /This module has no dedicated maintainers./ [[doom-contrib-maintainer:][Become a maintainer?]] @@ -25,6 +26,7 @@ This module configures Emacs for use in the terminal, by providing: ** Packages - [[doom-package:clipetty]] if [[doom-module:+osc]] - [[doom-package:evil-terminal-cursor-changer]] if [[doom-module::editor evil]] +- [[doom-package:kkp]] - [[doom-package:xclip]] unless [[doom-module:+osc]] ** Hacks diff --git a/modules/os/tty/config.el b/modules/os/tty/config.el index 444b4ba0d..8e4f0707f 100644 --- a/modules/os/tty/config.el +++ b/modules/os/tty/config.el @@ -42,3 +42,7 @@ ;; https://github.com/saitoha/mouseterm-plus/releases. That makes to support ;; VT's DECSCUSR sequence. (add-hook 'tty-setup-hook #'evil-terminal-cursor-changer-activate) + +;; Add support for the Kitty keyboard protocol. +(use-package! kkp + :hook (after-init . global-kkp-mode)) diff --git a/modules/os/tty/packages.el b/modules/os/tty/packages.el index 0156d38f2..74a3c5619 100644 --- a/modules/os/tty/packages.el +++ b/modules/os/tty/packages.el @@ -11,3 +11,5 @@ ;; NOTE Despite the evil-* prefix, evil-terminal-cursor-changer does not depend ;; on evil (anymore). (package! evil-terminal-cursor-changer :pin "2358f3e27d89128361cf80fcfa092fdfe5b52fd8") + +(package! kkp :pin "ed9214329f11b095fc7bad06feb329b9f232258d")