Move popup mode keymaps to autoload.el

This commit is contained in:
Henrik Lissner 2018-06-02 16:58:56 +02:00
parent 428f1e1d07
commit 209b281dc6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 15 additions and 13 deletions

View file

@ -257,6 +257,21 @@ Uses `shrink-window-if-larger-than-buffer'."
;; Minor mode
;;
;;;###autoload
(defvar +popup-mode-map (make-sparse-keymap)
"Active keymap in a session with the popup system enabled. See
`+popup-mode'.")
;;;###autoload
(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'.")
;;;###autoload
(define-minor-mode +popup-mode
"Global minor mode representing Doom's popup management system."