Skip to content

Instantly share code, notes, and snippets.

@dustinlacewell-wk
Created April 23, 2018 14:54
Show Gist options
  • Save dustinlacewell-wk/480b47cfddf03f6a031a3a1028d07575 to your computer and use it in GitHub Desktop.
Save dustinlacewell-wk/480b47cfddf03f6a031a3a1028d07575 to your computer and use it in GitHub Desktop.

hydra-elisp

  (defhydra hydra-elisp (:color blue :hint nil)
    "
    execute            debug

[d] defun          [D] defun
[x] expression     [c] call at point
[b] buffer         [a] tag all defs: %`edebug-all-defs
[r] region         [A] tag all forms: %`edebug-all-forms
[s] last sexp
  "
    ("<f19>" nil)
    ("SPC" (hera-pop))

    ("d" eval-defun)
    ("s" eval-last-sexp)
    ("b" eval-current-buffer)
    ("r" eval-region)
    ("x" eval-expresison)

    ("D" edebug-defun)
    ("t" (lambda () (interactive) (eval-defun (4))))
    ("c" edebug-instrument-callee)
    ("a" edebug-all-defs :color red)
    ("A" edebug-all-forms :color red))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment