Merge pull request #1794 from rgrinberg/debug-defun-edebug
lang/emacs-lisp: add edebug keybinds
This commit is contained in:
commit
768846fa75
|
@ -174,3 +174,15 @@ verbosity when editing a file in `doom-private-dir' or `doom-emacs-dir'."
|
|||
" "
|
||||
(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 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
|
||||
|
|
Loading…
Reference in New Issue
Block a user