mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
feat(debugging): add dap-mode with basic config for Go and Ruby
This commit is contained in:
33
modules/debugging/siren-dap.el
Normal file
33
modules/debugging/siren-dap.el
Normal 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
|
||||
19
modules/debugging/siren-debug-map.el
Normal file
19
modules/debugging/siren-debug-map.el
Normal 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
|
||||
Reference in New Issue
Block a user