Fork me on GitHub
#spacemacs
<
2017-03-13
>
Drew Verlee00:03:21

@eggsyntax That seems to have done the trick. @bpiel Awesome! Thanks for your hard work on this. I’m something of a emcas newbie. At this point in your instructions you type C-c s w. For the magic debug tree. https://bpiel.github.io/sayid/#demo1wt I’m 90% sure C-c means Ctrl-C but when i git those keys spacemacs tells me there are no commands following that. I’m afraid to emit i use spacemacs mainly by getting around helm. If i search for sayid i get a list of commands like sayid-trace-all-ns-in-dir. Which i ran before executing the tests. However im not sure what command to run after that.

bpiel00:03:23

@drewverlee C-c does mean Ctrl-c

bpiel00:03:47

so.. the key bindings aren't being set

bpiel00:03:20

which is what the code you mentioned earlier

(eval-after-load 'clojure-mode
  '(sayid-setup-package))
is supposed to do

bpiel00:03:59

but... the function those keys are meant to be bound to is sayid-get-workspace. You should be able to call that and see what, if anything, was captured

Drew Verlee00:03:14

Ah ok. let me fiddle with my setup. I just added sayid to the additional packages.

Drew Verlee01:03:33

After properly adjusting my head, it was clear i just needed to add (with-eval-after-load ‘clojure-mode (sayid-setup-package)) to my user-config in my .spacemacs file. eval-after-load would almost certainly work to.

Drew Verlee01:03:06

It seems like Sayid might conflict with some of spacemacs configuration settings. For example if i type i i get insert-mode (as i’m using evil mode). I’ll see if i can find the time to fiddle further. Its possible these problems are rather pedestrian in nature.

eggsyntax01:03:05

@drewverlee sayid is definitely super-cool, but at least as of his /conj talk, it was at a pretty beta stage. If you run into much trouble with it, you might want to consider working with cider for now, since that’s quite mature & well-integrated with spacemacs, and has a pretty decent debugger.

eggsyntax01:03:29

Unless you’re just super-psyched to play with sayid, which I totally get 😄

bpiel01:03:44

I'd still call it alpha actually 😄

bpiel01:03:01

and you need cider to use sayid anyway

eggsyntax01:03:15

Oh, right, @bpiel sayid is yours, right?

eggsyntax01:03:33

Very cool — the conj talk blew me away 🙂

bpiel01:03:41

glad you enjoyed it!

bpiel01:03:58

I was really nervous, but ended up having more fun than I expected

eggsyntax01:03:16

It’s a good crowd 😄

bpiel01:03:05

@drewverlee are you pressing i in the sayid buffer? is that buffer in evil-mode? (I've never user spacemacs or evil)

bpiel01:03:43

maybe hitting i again in insert-mode would trigger the sayid keybinding? just guessing

eggsyntax01:03:57

i in insert-mode would typically just insert the letter i. @bpiel if you can say what the name of the relevant emacs function is, @drewverlee you can hit SPC-: or M-x to enter helm-M-x mode, and then type the name of the function and it’ll tell you what keys (if any) are currently bound to that function.

bpiel01:03:16

depends on which sayid mode we're talking about. Assuming it's the buffer that shows the trace tree, i should call sayid-query-id

eggsyntax01:03:45

My guess is there’s probably some prefix he has to hit to make those bindings available. SPC-m opens the major-mode menu, but I’m guessing sayid is a minor mode?

bpiel01:03:34

For clojure-mode buffers, sayid adds its keybindings through some prefix-map mechanism (something I just recently learned about). There's no mode. But, sayid has a few major modes that it uses for the different types of sayid buffers

eggsyntax01:03:39

Ah, ok. If I get a chance I’ll install it sometime in the next day or so & see if I can figure out what the commands would be in spacemacs/evil.

bpiel01:03:51

cool. I encourage you to send me feedback, github issues etc

bpiel02:03:12

Maybe I'll bump this thing from alpha to beta one day (if it's ever ready)

eggsyntax02:03:19

Will do, I’ll try to make a couple on sayid + spacemacs & send it your way.

bpiel02:03:34

ok I should go to bed

eggsyntax02:03:45

Quick answer (just installed) — looks like some of the sayid commands are bound behind C-c, but there are quite a few that aren’t bound.

eggsyntax02:03:24

Ah, yeah, here we go. @drewverlee typing C-c s (that’s ctrl-c followed by s) will get you into a sayid menu.

eggsyntax02:03:57

So @bpiel that’s the quick answer if anyone else has the same question.