Set up realgud
This commit is contained in:
parent
995f3d3af2
commit
2b3088c84a
@ -2221,15 +2221,13 @@ nice with Org-roam:
|
|||||||
(leader-def-key "ps" #'projectile-run-shell-command-in-root)
|
(leader-def-key "ps" #'projectile-run-shell-command-in-root)
|
||||||
(leader-def-key "pa" #'projectile-run-async-shell-command-in-root)
|
(leader-def-key "pa" #'projectile-run-async-shell-command-in-root)
|
||||||
(leader-def-key "p M-x" #'projectile-run-command-in-root)
|
(leader-def-key "p M-x" #'projectile-run-command-in-root)
|
||||||
(defun projectile-pdb ()
|
(jdormit/define-prefix "pd" "debug"))
|
||||||
(interactive)
|
|
||||||
(with-temp-buffer
|
(defmacro with-projectile-root (&rest body)
|
||||||
(when (projectile-project-root)
|
`(with-temp-buffer
|
||||||
(cd (projectile-project-root)))
|
(when (projectile-project-root)
|
||||||
(let ((command-line (gud-query-cmdline 'pdb)))
|
(cd (projectile-project-root)))
|
||||||
(pdb command-line))))
|
,@body))
|
||||||
(jdormit/define-prefix "pd" "debug")
|
|
||||||
(leader-def-key "pdp" #'projectile-pdb))
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Mode line
|
* Mode line
|
||||||
@ -5790,6 +5788,18 @@ to use instead:
|
|||||||
(leader-def-key "cg" #'hydra-gud/body)
|
(leader-def-key "cg" #'hydra-gud/body)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
* realgud
|
||||||
|
Like [[info:emacs#Debuggers][GUD]], but better!
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package realgud
|
||||||
|
:init
|
||||||
|
(defun projectile-pdb ()
|
||||||
|
(interactive)
|
||||||
|
(with-projectile-root
|
||||||
|
(funcall-interactively #'realgud:pdb)))
|
||||||
|
(leader-def-key "pdp" #'projectile-pdb))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
* EDiff
|
* EDiff
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(setq ediff-window-setup-function #'ediff-setup-windows-plain)
|
(setq ediff-window-setup-function #'ediff-setup-windows-plain)
|
||||||
|
Loading…
Reference in New Issue
Block a user