Fork me on GitHub
#emacs
<
2018-02-17
>
richiardiandrea01:02:50

@mathpunk can you post your .dir-locals.el?

richiardiandrea01:02:30

Inf-clojure executes the inf-clojure-something-cmd for the repl

richiardiandrea01:02:48

Where something is the detected project type

richiardiandrea01:02:16

If you have project.clj it will be inf-clojure-lein-cmd

mathpunk01:02:48

@richiardiandrea I don't remember using such a file, so it only has ((nil . ((inf-clojure-boot-cmd . "lumo -d")))) in it

mathpunk01:02:11

oh, i also have no project.clj --- first lumo project, i just have a source file i was running at the command line

richiardiandrea01:02:41

Yes so there is a way to override that

richiardiandrea01:02:48

Set inf-clojure-project-type to boot

richiardiandrea01:02:31

Boot assumes you have build.boot of course

richiardiandrea01:02:08

But the defcustom above overrides stuff

richiardiandrea01:02:24

There is no way for detecting a lumo project at the moment

richiardiandrea01:02:21

@mathpunk don't forget to revert-buffer in order to reload your .dir-locals.el, it bit me hard 🙂

mathpunk01:02:58

for more context: there's a js library i want to use, so i figured I'd try lumo. usually i just lein new stuff. do you think boot is a better option for lumo projects?

richiardiandrea02:02:41

What is the library? I am asking because lumo is ClojureScript self-host so not everything is compatible with it

mathpunk05:02:43

I mean, I got the library working, no problem. I'm just fuzzy on the best way to set up a lumo project

tianshu09:02:09

how you make it worked? use lumo in leiningen?

mathpunk18:02:09

I still haven't solved my problem, "learn to run a lumo repl in emacs." But, in terms of the library, I just npm installed and used (def library (js/require "name-of-library"), which is pretty cool

mathpunk18:02:00

I think I'm going to make a macchiato project, rather than insist on a command line, so I'm dropping my attempt to figure out the lumo repl for now

richiardiandrea18:02:02

I have planned a blog post on inf-clojure for long time now, at some point I will find the time

stardiviner02:02:16

Is there someone can help me on this question? https://emacs.stackexchange.com/questions/38857/the-formatted-string-passed-to-cider-eval-function-error I've been trapped in this problem for a long time. Can't figure out where is wrong. I asked in Org-mode mailing list, but no any response. And asked on SE, seems low attractive. So I posted it here hope some Emacser can help me this out. And Thanks you in advance. I really need to solve this problem. I use it a lot in my case.

dpsutton02:02:56

The only thing I can think of at a cursory glance is to try it in a path that doesn't have spaces in it. I have no idea if that's the issue but it's one I'd try to rule out at the outset

stardiviner02:02:05

After the Spring Festival, I take your advice a try. That's weird, without space the problem is gone.

stardiviner02:02:27

Do you know what the space caused this problem?

stardiviner02:02:45

And how can I solve this space problem? I need to make this space in path work.