feat(core): use general.el for keybind definitions nearly everywhere

Primarily this replaces :bind with :general in all use-package calls.
This commit is contained in:
2022-03-14 20:58:06 +00:00
parent 3fc0d2d77d
commit a8618938bf
91 changed files with 665 additions and 632 deletions

View File

@@ -12,14 +12,15 @@
(use-package dap-mode
:defer t
:bind (:map siren-debug-map
("d" . dap-debug)
("t" . dap-breakpoint-toggle)
("c" . dap-breakpoint-condition)
("h" . dap-breakpoint-hit-condition)
("m" . dap-breakpoint-log-message)
("l" . dap-ui-breakpoints-list)
("b" . dap-ui-breakpoints))
:general
(:keymaps 'siren-debug-map
"d" 'dap-debug
"t" 'dap-breakpoint-toggle
"c" 'dap-breakpoint-condition
"h" 'dap-breakpoint-hit-condition
"m" 'dap-breakpoint-log-message
"l" 'dap-ui-breakpoints-list
"b" 'dap-ui-breakpoints)
:custom
(dap-auto-configure-features '(sessions locals controls tooltip))

View File

@@ -7,13 +7,8 @@
;;; Code:
(use-package siren-debug-map
:straight (:type built-in)
:no-require t
:bind
(:prefix-map siren-debug-map
:prefix "C-c -"))
(define-prefix-command 'siren-debug-map)
(general-define-key "C-c -" 'siren-debug-map)
(provide 'siren-debug-map)
;;; siren-debug-map.el ends here