Fix input-decode-map binds in emacsclient frames
This commit is contained in:
parent
5931d89d9d
commit
9b2100dfe7
1 changed files with 6 additions and 5 deletions
|
@ -748,12 +748,13 @@
|
||||||
;; This section is dedicated to "fixing" certain keys so that they behave
|
;; This section is dedicated to "fixing" certain keys so that they behave
|
||||||
;; sensibly (and consistently with similar contexts).
|
;; sensibly (and consistently with similar contexts).
|
||||||
|
|
||||||
(if window-system
|
;; Fix MacOS shift+tab
|
||||||
(define-key! input-decode-map
|
(when IS-MAC
|
||||||
[S-iso-lefttab] [backtab] ;; Fix MacOS shift+tab
|
(define-key input-decode-map [S-iso-lefttab] [backtab]))
|
||||||
(kbd "ESC") [escape])
|
|
||||||
;; Fix TAB in terminal
|
(defun +default|setup-input-decode-map ()
|
||||||
(define-key input-decode-map (kbd "TAB") [tab]))
|
(define-key input-decode-map (kbd "TAB") [tab]))
|
||||||
|
(add-hook 'tty-setup-hook #'+default|setup-input-decode-map)
|
||||||
|
|
||||||
(after! tabulated-list
|
(after! tabulated-list
|
||||||
(define-key tabulated-list-mode-map "q" #'quit-window))
|
(define-key tabulated-list-mode-map "q" #'quit-window))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue