Implement inspector package to emacs-lisp layer see #15039

This commit is contained in:
Daniel Nicolai 2021-09-10 18:51:02 +02:00 committed by Maxi Wolff
parent 1e79c36266
commit 6b9ec10c74
No known key found for this signature in database
GPG Key ID: 2DD07025BFDBD89A
2 changed files with 28 additions and 0 deletions

View File

@ -11,6 +11,7 @@
- [[#auto-compile][Auto-compile]]
- [[#working-with-lisp-files-barfage-slurpage--more][Working with lisp files (barfage, slurpage & more)]]
- [[#debugging-elisp][Debugging Elisp]]
- [[#using-the-inspector][Using the inspector]]
- [[#nameless][Nameless]]
- [[#aliases][Aliases]]
- [[#structurally-safe-editing][Structurally safe editing]]
@ -20,6 +21,7 @@
- [[#format-code][Format code]]
- [[#debugging][Debugging]]
- [[#refactoring-with-emr][Refactoring with emr]]
- [[#inspector][Inspector]]
* Description
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.
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 hides package namespaces in your emacs-lisp code, and replaces it by
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 d~ | delete unused definition |
| ~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 |

View File

@ -40,6 +40,9 @@
counsel-gtags
helm-gtags
(ielm :location built-in)
(inspector :location (recipe
:fetcher github
:repo "mmontone/emacs-inspector"))
macrostep
nameless
overseer
@ -371,3 +374,10 @@
"rdd" #'emr-el-delete-unused-definition
"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)))