From e02f01b694befd306641fa9696676bacdbe91a12 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 7 Jan 2018 06:46:41 -0500 Subject: [PATCH] feature/popup: make extra sure escape=>doom/escape in popups #261 --- modules/feature/popup/config.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/feature/popup/config.el b/modules/feature/popup/config.el index eefd87353..6ab3576a9 100644 --- a/modules/feature/popup/config.el +++ b/modules/feature/popup/config.el @@ -84,7 +84,13 @@ deleted.") "Active keymap in a session with the popup system enabled. See `+popup-mode'.") -(defvar +popup-buffer-mode-map (make-sparse-keymap) +(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)) + map) "Active keymap in popup windows. See `+popup-buffer-mode'.")