Fork me on GitHub
#vim
<
2020-05-18
>
Noah Bogart16:05:01

hey all, i'd love to use clojure.walk's macroexpand-all in vim-iced. right now, <leader>em does normal single macro-expansion, which is helpful, but if i want see nested forms expanded, i have to move the cursor to the window and use it again, losing the context

Noah Bogart16:05:03

requiring clojure.walk and then wrapping the form in (macroexpand-all) lets me evaluate it, but then i only see the expansion in the buffer line, which is unreadable and sometimes too big to see all of

noisesmith16:05:57

what about as a hack, adding a pprint, then going ot the stdout buffer?

Noah Bogart16:05:55

sheeeeeeeit, this is awesome

noisesmith16:05:55

my biggest annoyance with IDE-like setups is the ephemerality of results, so I often search for the option to log to a buffer instead of / as well as at the minibuffer or inline in a tooltip

Noah Bogart16:05:39

yeah, it's something i miss from my meager attempts at learning emacs: i love slime's dedicated repl buffer

noisesmith16:05:45

I end up using :term lein repl :connect NNNN so that I can have a real repl for some commands, while using shortcuts for eg. require / reload / reset where I won't care about non-error return values

noisesmith16:05:01

(:term is nvim only)

Noah Bogart16:05:32

that sounds nice. i might have to try neovim

noisesmith16:05:29

the one gotcha is that terminal buffers are so fully tty compatible that none of your shortcuts work (there's a new keymap, and a single C-\C-n binding to escape terminal mode)

jahson16:05:51

There's

n       <Leader>eM   <Plug>(iced_macroexpand_outer_list)

jahson16:05:10

Have you tried it?

noisesmith16:05:41

I'd expect eM to be just like em except grabbing the form differently -no, that's wrong

Noah Bogart16:05:11

lol the docs have them both as lowercase m, so i didn't realize there was a difference

Noah Bogart16:05:46

yep, that works

jahson16:05:56

@nbtheduke that's strange, you might consider to create a pull request to fix it.

Noah Bogart16:05:56

do i have to run anything to convert adoc to html? or does that happen live on the site?

Noah Bogart16:05:13

never heard of this file format before

jahson16:05:06

Honestly I don't know. I think it is converted by some kind of GitHub workflow.

👍 4
jahson16:05:28

The format is called asciidoc

Noah Bogart16:05:50

good find on the workflow

Noah Bogart16:05:58

cool, i'll whip one up for you