editors

Discussion about all editors used for Clojure/ClojureScript
val_waeselynck 2015-07-25T13:32:18.000096Z

I'm using a 'conciseness' macro that accepts a binding form as an argument (i.e without the surrounding let or fn). The problem is, Cursive marks all the symbols I define in this binding form as 'unable to resolve', and I end up with a lot of warnings. Is there any way to combat this?

colin.yates 2015-07-25T17:00:24.000098Z

You might want to ask in the #C0744GXCJ channel, but I seem to remember Colin mentioning unravelling macros is a bit of black magic...

val_waeselynck 2015-07-25T17:55:45.000099Z

@colin.yates: thanks, re-posting there

borkdude 2015-07-25T20:00:31.000100Z

I am using Emacs prelude and I'm running lein figwheel in inferior-lisp mode

borkdude 2015-07-25T20:00:48.000101Z

how can I send a sexp to that buffer? C-x-e doesn't work

borkdude 2015-07-25T20:04:35.000102Z

@bozhidar: ?

borkdude 2015-07-25T20:18:26.000103Z

other question: I want to recenter my REPL while doing a demo, with C-l

borkdude 2015-07-25T20:18:50.000104Z

but as soon as I type something, the new line is at the bottom of the buffer again. How to solve that?

bozhidar 2015-07-25T20:22:55.000105Z

inferior-lisp mode?

bozhidar 2015-07-25T20:23:07.000106Z

I killed the support for it a while back

bozhidar 2015-07-25T20:23:25.000107Z

itโ€™s superseded by inf-clojure

borkdude 2015-07-25T20:23:47.000108Z

@bozhidar: I'm using it to run a clojurescript repl that comes with figwheel

borkdude 2015-07-25T20:24:40.000109Z

@bozhidar: I'm not sure if inf-clojure would help me there. But all I want is send a selection to the inferior-lisp buffer, so it will be evaluated there.

malabarba 2015-07-25T20:28:59.000110Z

borkdude: You could write a command for that

malabarba 2015-07-25T20:29:10.000111Z

should be pretty simple

borkdude 2015-07-25T20:31:41.000112Z

@malabarba: yeah, that's probably the way to go

malabarba 2015-07-25T20:32:17.000113Z

(defun send-to-inflisp (l r)
  "Send text between L and R (or region) to inferior-lisp buffer."
  (interactive "r")
  (let ((text (buffer-substring l r)))
    ;; Uncomment if you want to get rid of the original text.
    ;; (delete-region l r)
    (with-current-buffer "inferior-lisp"
      (goto-char (point-max))
      (insert text))
    (switch-to-buffer "inferior-lisp")))

malabarba 2015-07-25T20:32:46.000115Z

Here's a start for you. ๐Ÿ˜‰

bozhidar 2015-07-25T20:42:22.000116Z

and inf-clojure is the best option for you

bozhidar 2015-07-25T20:42:37.000117Z

it just runs whatever repl you want using comint

bozhidar 2015-07-25T20:43:00.000118Z

but unlike inferior-lisp it actually has clojure-aware evaluation commands

borkdude 2015-07-25T20:44:33.000119Z

@bozhidar: I see. I'll try it then.

borkdude 2015-07-25T20:45:16.000120Z

@malabarba: thanks mate, I'll use that when I don't get inf-clojure working

borkdude 2015-07-25T20:54:04.000121Z

@bozhidar: works, thanks a lot :simple_smile:

borkdude 2015-07-25T20:55:06.000123Z

now for my other question, is it possible when I have a repl buffer and press C-l, that it remains centered when I type something new?