From 79da47fd51f10d540f1ba52b4534d4167229f1cb Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 1 Oct 2024 16:24:20 +0100 Subject: GUD configuration --- Emacs/.config/emacs/config.org | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 62cfdb8..96a98a2 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -2345,6 +2345,38 @@ Little helper which launches an MPV process asynchronously. (app-leader "v" #'mpv-open-video)) #+end_src +** Grand Unified Debugger +GUD is a system for debugging, hooking into processes and +providing an interface to the user all in Emacs. Here I define a +hydra which provides a ton of the useful =gud= keybindings that exist +in an Emacs-only map. +#+begin_src emacs-lisp +(use-package gud + :general + :after hydra + :hydra + (gud-hydra + (:hint nil) "Hydra for GUD" + ("<" #'gud-up) + (">" #'gud-down) + ("b" #'gud-break) + ("d" #'gud-remove) + ("f" #'gud-finish) + ("j" #'gud-jump) + ("l" #'gud-refresh) + ("n" #'gud-next) + ("p" #'gud-print) + ("r" #'gud-cont) + ("s" #'gud-step) + ("t" #'gud-tbreak) + ("u" #'gud-until) + ("v" #'gud-go) + ("w" #'gud-watch) + ("TAB" #'gud-stepi)) + :general + (code-leader "d" #'gud-hydra/body + "D" #'gud-gdb)) +#+end_src * Text modes Standard packages and configurations for text-mode and its derived modes. -- cgit v1.2.3-13-gbd6f