Files
.emacs.d/modules/debugging/siren-dap.el
Jim Myhrberg a8618938bf feat(core): use general.el for keybind definitions nearly everywhere
Primarily this replaces :bind with :general in all use-package calls.
2022-03-14 21:16:15 +00:00

35 lines
795 B
EmacsLisp

;;; siren-dap.el --- jimeh's Emacs Siren: dap-mode configuration.
;;; Commentary:
;; Basic configuration for dap-mode.
;;; Code:
(require 'siren-debug-map)
(require 'siren-hydra)
(use-package dap-mode
:defer t
: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))
:config
(dap-auto-configure-mode t)
(add-hook 'dap-stopped-hook
(lambda (arg) (call-interactively #'dap-hydra))))
(provide 'siren-dap)
;;; siren-dap.el ends here