Implement inspector package to emacs-lisp layer see #15039
This commit is contained in:
parent
1e79c36266
commit
6b9ec10c74
|
@ -11,6 +11,7 @@
|
||||||
- [[#auto-compile][Auto-compile]]
|
- [[#auto-compile][Auto-compile]]
|
||||||
- [[#working-with-lisp-files-barfage-slurpage--more][Working with lisp files (barfage, slurpage & more)]]
|
- [[#working-with-lisp-files-barfage-slurpage--more][Working with lisp files (barfage, slurpage & more)]]
|
||||||
- [[#debugging-elisp][Debugging Elisp]]
|
- [[#debugging-elisp][Debugging Elisp]]
|
||||||
|
- [[#using-the-inspector][Using the inspector]]
|
||||||
- [[#nameless][Nameless]]
|
- [[#nameless][Nameless]]
|
||||||
- [[#aliases][Aliases]]
|
- [[#aliases][Aliases]]
|
||||||
- [[#structurally-safe-editing][Structurally safe editing]]
|
- [[#structurally-safe-editing][Structurally safe editing]]
|
||||||
|
@ -20,6 +21,7 @@
|
||||||
- [[#format-code][Format code]]
|
- [[#format-code][Format code]]
|
||||||
- [[#debugging][Debugging]]
|
- [[#debugging][Debugging]]
|
||||||
- [[#refactoring-with-emr][Refactoring with emr]]
|
- [[#refactoring-with-emr][Refactoring with emr]]
|
||||||
|
- [[#inspector][Inspector]]
|
||||||
|
|
||||||
* Description
|
* Description
|
||||||
This layer gathers all the configuration related to emacs-lisp. This should
|
This layer gathers all the configuration related to emacs-lisp. This should
|
||||||
|
@ -108,6 +110,10 @@ displayed in the mode line.
|
||||||
function or press ~o~ to go out of it.
|
function or press ~o~ to go out of it.
|
||||||
6) Press ~a~ to stop debugging.
|
6) Press ~a~ to stop debugging.
|
||||||
|
|
||||||
|
** Using the inspector
|
||||||
|
This layer adds the [[https://github.com/mmontone/emacs-inspector][inspector]] package to provide an easy way for inspecting
|
||||||
|
data structures. Find more information about its usage [[https://github.com/mmontone/emacs-inspector][here]] and see keybindings [
|
||||||
|
|
||||||
* Nameless
|
* Nameless
|
||||||
Nameless hides package namespaces in your emacs-lisp code, and replaces it by
|
Nameless hides package namespaces in your emacs-lisp code, and replaces it by
|
||||||
leading ~>~ It can be toggled with ~SPC m T n~.
|
leading ~>~ It can be toggled with ~SPC m T n~.
|
||||||
|
@ -306,3 +312,15 @@ line)
|
||||||
| ~SPC m r d l~ | delete let binding form |
|
| ~SPC m r d l~ | delete let binding form |
|
||||||
| ~SPC m r d d~ | delete unused definition |
|
| ~SPC m r d d~ | delete unused definition |
|
||||||
| ~SPC m e w~ | eval and replace |
|
| ~SPC m e w~ | eval and replace |
|
||||||
|
|
||||||
|
** Inspector
|
||||||
|
|
||||||
|
*inspector buffer*
|
||||||
|
| Key binding | Description |
|
||||||
|
|-------------+-----------------------------|
|
||||||
|
| ~RET~ | inspect object |
|
||||||
|
| ~L~ | navigate to previous object |
|
||||||
|
| ~q~ | quit inspector |
|
||||||
|
|
||||||
|
*backtrace buffer*
|
||||||
|
| ~i~ | inspect object |
|
||||||
|
|
|
@ -40,6 +40,9 @@
|
||||||
counsel-gtags
|
counsel-gtags
|
||||||
helm-gtags
|
helm-gtags
|
||||||
(ielm :location built-in)
|
(ielm :location built-in)
|
||||||
|
(inspector :location (recipe
|
||||||
|
:fetcher github
|
||||||
|
:repo "mmontone/emacs-inspector"))
|
||||||
macrostep
|
macrostep
|
||||||
nameless
|
nameless
|
||||||
overseer
|
overseer
|
||||||
|
@ -371,3 +374,10 @@
|
||||||
"rdd" #'emr-el-delete-unused-definition
|
"rdd" #'emr-el-delete-unused-definition
|
||||||
|
|
||||||
"ew" #'emr-el-eval-and-replace)))
|
"ew" #'emr-el-eval-and-replace)))
|
||||||
|
|
||||||
|
(defun emacs-lisp/init-inspector ()
|
||||||
|
(use-package inspector
|
||||||
|
:commands (inspect-expression inspect-last-sexp)
|
||||||
|
:config
|
||||||
|
(evilified-state-evilify-map inspector-mode-map
|
||||||
|
:mode inspector-mode)))
|
||||||
|
|
Loading…
Reference in a new issue