mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Merge pull request #1794 from rgrinberg/debug-defun-edebug
lang/emacs-lisp: add edebug keybinds
This commit is contained in:
@ -174,3 +174,15 @@ verbosity when editing a file in `doom-private-dir' or `doom-emacs-dir'."
|
|||||||
" "
|
" "
|
||||||
(default-value 'flycheck-emacs-lisp-check-form)
|
(default-value 'flycheck-emacs-lisp-check-form)
|
||||||
")"))))
|
")"))))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun +emacs-lisp/edebug-instrument-defun-on ()
|
||||||
|
"Toggle on instrumentalisation for the function under `defun'."
|
||||||
|
(interactive)
|
||||||
|
(eval-defun 'edebugit))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun +emacs-lisp/edebug-instrument-defun-off ()
|
||||||
|
"Toggle off instrumentalisation for the function under `defun'."
|
||||||
|
(interactive)
|
||||||
|
(eval-defun nil))
|
||||||
|
@ -77,8 +77,10 @@ This marks a foldable marker for `outline-minor-mode' in elisp buffers.")
|
|||||||
|
|
||||||
(map! :localleader
|
(map! :localleader
|
||||||
:map emacs-lisp-mode-map
|
:map emacs-lisp-mode-map
|
||||||
"e" #'macrostep-expand))
|
"e" #'macrostep-expand
|
||||||
|
(:prefix ("d" . "debug")
|
||||||
|
("f" #'+emacs-lisp/edebug-instrument-defun-on)
|
||||||
|
("F" #'+emacs-lisp/edebug-instrument-defun-off))))
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;;; Packages
|
;;; Packages
|
||||||
|
Reference in New Issue
Block a user