Henrik Lissner
2025-02-21 14:21:37 -05:00
parent 79a8abd85a
commit fd76545882
3 changed files with 3 additions and 14 deletions

View File

@ -3,4 +3,4 @@
(when (< emacs-major-version 29)
(package! osx-trash :pin "90f0c99206022fec646206018fcd63d9d2e57325"))
(package! ns-auto-titlebar :pin "60273e764bf8d95abc40dd2fdc23af87ea9ee33b")
(package! ns-auto-titlebar :pin "1205ac67b76b58e9eb53d2115b85775533653a80")

View File

@ -48,22 +48,11 @@
(use-package! kkp
:hook (after-init . global-kkp-mode)
:config
;; HACK: Emacs falls back to RET, TAB, and/or DEL if [return], [tab], and/or
;; [backspace] are unbound, but this isn't the case for all input events,
;; like these, which don't fall back to M-RET, M-TAB, etc. Therefore making
;; these keybinds inaccessible in KKP supported terminals.
;; REVIEW: See benjaminor/kkp#13.
(define-key! local-function-key-map
[M-return] (kbd "M-RET")
[M-tab] (kbd "M-TAB")
[M-backspace] (kbd "M-DEL")
[M-delete] (kbd "M-DEL"))
;; HACK: Allow C-i to function independently of TAB in KKP-supported
;; terminals. Requires the `input-decode-map' entry in
;; lisp/doom-keybinds.el.
(define-key! key-translation-map
[?\C-i] (cmd! (if-let* (((kkp--terminal-has-active-kkp-p))
[?\C-i] (cmd! (if-let* (((kkp--this-terminal-has-active-kkp-p))
(keys (this-single-command-raw-keys))
((> (length keys) 2))
((equal (cl-subseq keys -3) [27 91 49])))

View File

@ -12,4 +12,4 @@
;; on evil (anymore).
(package! evil-terminal-cursor-changer :pin "2358f3e27d89128361cf80fcfa092fdfe5b52fd8")
(package! kkp :pin "ed9214329f11b095fc7bad06feb329b9f232258d")
(package! kkp :pin "ad23d961c3a5dce83b1c9a6b4c65b48809c7af9a")