Fix meta keybinds in popup in tty Emacs #869

Meta keys map to ESC in tty Emacs.
This commit is contained in:
Henrik Lissner 2018-09-13 11:08:39 -04:00
parent 142d3646ef
commit a1440f8d66
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -43,9 +43,9 @@ adjustment.")
(defvar +popup-buffer-mode-map
(let ((map (make-sparse-keymap)))
(when (featurep! :feature evil)
;; for maximum escape coverage in emacs state buffers
(define-key map [escape] #'doom/escape)
(define-key map (kbd "ESC") #'doom/escape))
;; For maximum escape coverage in emacs state buffers; this only works in
;; GUI Emacs, in tty Emacs use C-g instead
(define-key map [escape] #'doom/escape))
map)
"Active keymap in popup windows. See `+popup-buffer-mode'.")