Fix #4865: fix deprecation notice on define-minor-mode

This commit is contained in:
Henrik Lissner 2021-04-15 18:44:28 -04:00
parent 65bc279e59
commit 9218473c7c

View file

@ -127,7 +127,8 @@
(define-minor-mode +dap-running-session-mode
"A mode for adding keybindings to running sessions"
nil nil (make-sparse-keymap)
:init-value nil
:keymap (make-sparse-keymap)
(when (bound-and-true-p evil-mode)
(evil-normalize-keymaps)) ; if you use evil, this is necessary to update the keymaps
;; The following code adds to the dap-terminated-hook so that this minor