Fix #4865: fix deprecation notice on define-minor-mode
This commit is contained in:
parent
65bc279e59
commit
9218473c7c
1 changed files with 3 additions and 2 deletions
|
@ -127,9 +127,10 @@
|
||||||
|
|
||||||
(define-minor-mode +dap-running-session-mode
|
(define-minor-mode +dap-running-session-mode
|
||||||
"A mode for adding keybindings to running sessions"
|
"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)
|
(when (bound-and-true-p evil-mode)
|
||||||
(evil-normalize-keymaps)) ; if you use evil, this is necessary to update the keymaps
|
(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
|
;; The following code adds to the dap-terminated-hook so that this minor
|
||||||
;; mode will be deactivated when the debugger finishes
|
;; mode will be deactivated when the debugger finishes
|
||||||
(when +dap-running-session-mode
|
(when +dap-running-session-mode
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue