What is the simplest way to test out inf-clojure with a custom stdin/stdout REPL?
does inf-clojure only work with socket REPLs?
It works with stdio repls, that is my "daily driver" repl setup.
If you have inf-clojure installed in emacs you should be able to just open some file in the project directory, then M-x inf-clojure, then select clojure as the repl type in the "startup command prompt" that comes up
if it's a custom type, instead of selecting clojure for the startup command, type your own command, and then pick one from the next list for the repl type (probably clojure is what you want there)
It seems it forces me to choose one of the types, it doesn't allow me to type a custom command (cc @dpsutton)
Also I can't type a space
I can confirm that when I type "ffffff" it will say: can't find program fffff
but how the heck do I type "node /Users/borkdude/dev/squint/node_cli.js repl"
ah lol, copy paste worked
oh yeah if it's one word i think you can just press enter and ignore the [no match] and it will try to run that command. Not sure if there's an easy way around a command with a space build into the ui haha, nice!
@jjttjj am I right that inf-clojure doesn't offer inline evaluation display of the result?
yup correct
back to basics :)
I like to just have all my output in the repl window personally 🙂. It's not always ideal (like with print output being indistinguishable from eval results) but it gets the job done for me
Might be our list display engine. Ivy versus others might make typing a form with no match easier depending on which lib you use
eval
(completing-read "check completing-read"
'("first choice" "second choice")
nil
'confirm-after-completion)
in your *scratch* buffer. I can easily type things with spaces in themi think that will end up in (use-package ivy) which does the list selection an all that. been a while since i’ve set that up
> Ivy is an interactive interface for completion in Emacs. Emacs uses completion mechanism in a variety of contexts: code, menus, commands, variables, functions, etc. Completion entails listing, sorting, filtering, previewing, and applying actions on selected items. When active, ivy-mode completes the selection process by narrowing available choices while previewing in the minibuffer. Selecting the final candidate is either through simple keyboard character inputs or through powerful regular expressions.
https://oremacs.com/swiper/ I guess it’s actually swiper. But the nomencalture gets weird because i think ivy and swiper are distributed in the same package
Thanks folks