Emacs: Better gdb/gud defaults

This commit is contained in:
Joseph Ferano 2023-11-08 13:03:41 +07:00
parent a20aa01ca5
commit 73358a38ac

View File

@ -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 "cargo build"
:dap-compilation-dir "${workspaceFolder}")) :dap-compilation-dir "${workspaceFolder}"))
#+end_src #+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 ** org-mode
*** General *** General
#+begin_src emacs-lisp #+begin_src emacs-lisp