Fork me on GitHub
#emacs
<
2019-02-11
>
mikepjb06:02:43

Does anyone know how to split the output and input of the REPL like Timothy Baldridge does in his core.async talk? https://www.youtube.com/watch?v=enwIIGzhahw

practicalli-johnny11:02:41

@mikepjb answered in #cider (in short, I dont know, Timothy was using what he stated was a bug in nrepl) https://clojurians.slack.com/archives/C0617A8PQ/p1549882501005100

mikepjb11:02:49

thanks very much @jr0cket

practicalli-johnny11:02:45

@mikepjb if you want to split output because you have a lot of output, you could always log it to a file or to elastic search. But now I am guessing as to why you would want to split your input from your output

mikepjb11:02:12

@jr0cket I wanted to split the output from input to prevent asynchronous output clobbering the buffer when I'm trying to use the REPL

mikepjb11:02:15

e.g

server-output-log-1: "xyz"
server-output-log-2: "xyz"
boot.user=> (map some-example-code-that-I-waserver-output-log-3: "xyz"

mikepjb11:02:30

I might try evaluating in the source file, seems like a better workaround than potentially changing the way nREPL is working

theeternalpulse16:02:02

how do I disable golden-ratio mode for the hydra buffer

ag19:02:17

golden-ratio-exclude-modes

theeternalpulse19:02:32

which mode is the minibuffer? Or at least hydra's minibuffer like window

theeternalpulse19:02:06

I couldn't really get C-h m working in the buffer, it just closes

ag19:02:09

hmm… I guess it may be trickier than expected. maybe you may have to do something similar to this:

(dolist (buf (list " *Minibuf-0*" " *Minibuf-1*" " *which-key*"))
    (when (get-buffer buf)
      (with-current-buffer buf
        (do-something-here))))

ag19:02:32

¯\(ツ)

ag19:02:49

or use golden-ratio-exclude-buffer-names

ag19:02:11

and try including those *Minibuf-0*, etc

theeternalpulse21:02:21

let me try that, I was looking to see in the code what buffers it uses but larger elisp codebases are harder for me to parse by glancing

ag21:02:31

yeah… elisp is a bitch - once written, it becomes so cryptic after a while

mhcat15:02:48

In many cases it helps to paste a function into scratch and reformat it - I've noticed that a lot of emacs elisp is adjusted presumably to nicely fit under some max line length, resulting in some code being less indented than its enclosing form - this is a ridiculous load to place on my brain, ymmv

mhcat15:02:27

(I really don't know about the general state of melpa packages, but that's my experience of old code in emacs)