Fork me on GitHub
#editors
<
2015-07-25
>
val_waeselynck13:07:18

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.yates17:07:24

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_waeselynck17:07:45

@colin.yates: thanks, re-posting there

borkdude20:07:31

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

borkdude20:07:48

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

borkdude20:07:26

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

borkdude20:07:50

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

bozhidar20:07:55

inferior-lisp mode?

bozhidar20:07:07

I killed the support for it a while back

bozhidar20:07:25

it’s superseded by inf-clojure

borkdude20:07:47

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

borkdude20:07:40

@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.

malabarba20:07:59

borkdude: You could write a command for that

malabarba20:07:10

should be pretty simple

borkdude20:07:41

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

malabarba20:07:17

(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")))

malabarba20:07:46

Here's a start for you. 😉

bozhidar20:07:22

and inf-clojure is the best option for you

bozhidar20:07:37

it just runs whatever repl you want using comint

bozhidar20:07:00

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

borkdude20:07:33

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

borkdude20:07:16

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

borkdude20:07:04

@bozhidar: works, thanks a lot simple_smile

borkdude20:07:06

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?