From 73358a38acf5c3a72fd329b235985e5e1e950176 Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Wed, 8 Nov 2023 13:03:41 +0700 Subject: [PATCH] Emacs: Better gdb/gud defaults --- .config/emacs/init.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.config/emacs/init.org b/.config/emacs/init.org index 190e31d..61edafe 100644 --- a/.config/emacs/init.org +++ b/.config/emacs/init.org @@ -2361,6 +2361,16 @@ and there's no need for a middle-man when it's already been implemented. :dap-compilation "cargo build" :dap-compilation-dir "${workspaceFolder}")) #+end_src +*** GDB/GUD +#+begin_src emacs-lisp +(setq gdb-many-windows t) +(setq gud-tooltip-dereference t) + +(defun hook-gud-mode () + (define-key gud-global-map (kbd "C-c") #'gud-cont) + (define-key gud-global-map (kbd "C-r") #'gud-run)) +(add-hook 'gud-mode-hook #'hook-gud-mode) +#+end_src ** org-mode *** General #+begin_src emacs-lisp