-
Suppose I created a keymap. (defvar *space-b-keymap*
(make-keymap :name '*space-b-keymap*)
"buffer menu")
(define-keys *space-b-keymap*
("b" 'lem-core/commands/window:select-buffer)
("d" 'lem-core/commands/window:kill-buffer)
("n" 'lem-core/commands/window:next-buffer)
("p" 'lem-core/commands/window:previous-buffer)
("r" 'lem-core/commands/file:revert-buffer)) When I try to look at it, I get an opaque representation that isn't very informative.
What expression could I run on the REPL to get the keys and the functions they're bound to printed? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I have been experimenting with describe-bindings, in particular trying to get it to show the |
Beta Was this translation helpful? Give feedback.
-
Few ways. Most of the time I just use Also, in your example:
You can click/hit return over |
Beta Was this translation helpful? Give feedback.
-
Common Lisp REPL History... Finally!By poking around a bit, I finally figured out how to navigate Lem's Common Lisp REPL history. lem/listener-mode::*listener-mode-keymap* ...and the keys:
I was so frustrated by the Common Lisp REPL in Lem before I found |
Beta Was this translation helpful? Give feedback.
Few ways. Most of the time I just use
describe-bindings
in the mode I'm in. If you want a better way to inspect that specific symbol, you can do(inspect *space-b-keymap*)
and then view the contents of the table there. Personally, when inspecting I use theC-c I
keybind hovering over it (or on an empty space and then type the name of the symbol I want to inspect). You can use tab to cycle through the selected item, then RET to open it up.Also, in your example:
You can click/hit return over
#<KEYMAP *SPACE-B-KEYMAP* {100605F933}>
to inspect it.