Skip to content

Commit

Permalink
Use defvar-keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Feb 12, 2023
1 parent 8104aa3 commit c5e8b65
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions minions.el
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,8 @@ minor-modes that is usually displayed directly in the mode line."

;;; Menu

(defvar minions-mode-line-minor-modes-map
(let ((map (make-sparse-keymap)))
(define-key map [mode-line down-mouse-1] #'minions-minor-modes-menu)
map))
(defvar-keymap minions-mode-line-minor-modes-map
"<mode-line> <down-mouse-1>" #'minions-minor-modes-menu)

(defvar minions-mode-line-modes
(let ((recursive-edit-help-echo "Recursive edit, type C-M-c to get out"))
Expand Down

0 comments on commit c5e8b65

Please sign in to comment.