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?
You might want to ask in the #C0744GXCJ channel, but I seem to remember Colin mentioning unravelling macros is a bit of black magic...
@colin.yates: thanks, re-posting there
I am using Emacs prelude and I'm running lein figwheel
in inferior-lisp mode
how can I send a sexp to that buffer? C-x-e doesn't work
@bozhidar: ?
other question: I want to recenter my REPL while doing a demo, with C-l
but as soon as I type something, the new line is at the bottom of the buffer again. How to solve that?
inferior-lisp
mode?
I killed the support for it a while back
itโs superseded by inf-clojure
@bozhidar: I'm using it to run a clojurescript repl that comes with figwheel
@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.
borkdude: You could write a command for that
should be pretty simple
@malabarba: yeah, that's probably the way to go
(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")))
Here's a start for you. ๐
and inf-clojure
is the best option for you
it just runs whatever repl you want using comint
but unlike inferior-lisp
it actually has clojure-aware
evaluation commands
@bozhidar: I see. I'll try it then.
@malabarba: thanks mate, I'll use that when I don't get inf-clojure working
@bozhidar: works, thanks a lot :simple_smile:
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?