Fork me on GitHub
#cider
<
2023-11-28
>
richiardiandrea18:11:18

Hi all, I'd like to use the new tap> integration - thanks it is very handy 😄 During debugging though, I don't see the new t and 1 shortcut coming out - I see the actual elisp function and I can call it with no issue. Am I missing some configuration of cider-inspector-mode ?

vemv18:11:08

Glad to hear! t and 1 are defined in cider-inspector-mode-map Maybe it's defined twice somehow? Maybe some unfortunate distro / byte-compilation thing resulted in that This should always work:

(define-key cider-inspector-mode-map "t" #'cider-inspector-tap-current-val)
(define-key cider-inspector-mode-map "1" #'cider-inspector-tap-at-point)
...which is good to put into 'cider-inspector-mode-hook

❤️ 1
richiardiandrea18:11:39

Ok I'll try that

richiardiandrea18:11:14

I see I had eldev compile && eldev build :autoloads in my emacs but they maybe the second one is not needed anymore

richiardiandrea18:11:09

I am using https://github.com/emacscollective/borg - makes for some fun sometimes 😄

richiardiandrea20:11:01

Uhm, no, it was not a compilation issue, I'll stick with define-key for now then

vemv20:11:12

if you figure it out, let us know :) Have a great one with the Inspector, I've made great use of it lately so there's more stuff to come https://github.com/clojure-emacs/orchard/issues

❤️ 1
richiardiandrea21:11:15

Uhm for some reason the define-key don't work in a use-package hook - I'll have to dig deeper into this as there is something weird going on