branch: externals/inspector
commit b89d9feb0535b6ddb0495401e39a510c79822ff5
Author: Mariano Montone <[email protected]>
Commit: GitHub <[email protected]>
Update README.md
---
README.md | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 2727c246c0..46d0bfa2d0 100644
--- a/README.md
+++ b/README.md
@@ -58,7 +58,7 @@ Then start the inspector with either `M-x
tree-inspector-inspect-expression` or
Instead of bothering setting up different key bindings for elisp evaluation
and inspection, it can be handy to have both in the same command, and use
prefix arguments to differenciate, like this:
```emacs-lisp
-(defun inspect-or-eval-expression (arg)
+(defun eval-or-inspect-expression (arg)
"Like `eval-expression', but also inspect when called with prefix ARG."
(interactive "P")
(pcase arg
@@ -66,7 +66,7 @@ Instead of bothering setting up different key bindings for
elisp evaluation and
(call-interactively #'inspector-inspect-expression)))
(_ (call-interactively #'eval-expression))))
-(defun inspect-or-eval-last-sexp (arg)
+(defun eval-or-inspect-last-sexp (arg)
"Like `eval-last-sexp', but also inspect when called with prefix ARG."
(interactive "P")
(pcase arg
@@ -77,8 +77,8 @@ Instead of bothering setting up different key bindings for
elisp evaluation and
Setup key bindings:
```emacs-lisp
-(define-key global-map [remap eval-last-sexp] #'inspect-or-eval-last-sexp)
-(define-key global-map [remap eval-expression] #'inspect-or-eval-expression)
+(define-key global-map [remap eval-last-sexp] #'eval-or-inspect-last-sexp)
+(define-key global-map [remap eval-expression] #'eval-or-inspect-expression)
```
and then use `C-u C-x C-e` and `C-u M-:` as alternatives to `eval-last-sexp`
and `eval-expression`.
@@ -100,4 +100,3 @@ and then use `C-u C-x C-e` and `C-u M-:` as alternatives to
`eval-last-sexp` and
)
(add-hook 'inspector-mode-hook #'inspector--set-evil-key-binding)
```
-