feat(debugging): add dap-mode with basic config for Go and Ruby

This commit is contained in:
2020-11-11 10:50:44 +00:00
parent 5c2229c807
commit 7917f6ac56
6 changed files with 78 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
;;; 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
: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))
: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

View File

@@ -0,0 +1,19 @@
;;; siren-debug-map.el --- jimeh's Emacs Siren: debug-map setup.
;;; Commentary:
;; Setup of siren-debug-map which other debugging modules can add keybindings
;; to.
;;; Code:
(use-package siren-debug-map
:straight (:type built-in)
:no-require t
:bind
(:prefix-map siren-debug-map
:prefix "C-c -"))
(provide 'siren-debug-map)
;;; siren-debug-map.el ends here