Fork me on GitHub
#cider
<
2017-06-26
>
ronen15:06:28

Does anyone know how I can customize cider's repl buffer width? Couldn't find anything through customize-group

dpsutton15:06:33

what does buffer width mean? certainly you can resize the buffer itself in emacs. and the only thing that has a notion of width in the repl that i'm aware of is the pretty printing

dpsutton15:06:38

and there's a defcustom for that

dpsutton15:06:40

cider-repl-pretty-print-width on my CIDER 0.15 at work although i'm not sure how stale this is here. we're a c# shop at work

ronen15:06:44

@dpsutton Right now the repl buffer is the same width as the .clj buffer I'm jacking in from. I'd like the increase the ratio in favor of the code buffer.

dpsutton15:06:23

enlarge-window-horizontally if i'm understanding you correctly. You want to know how to resize windows in emacs

dpsutton15:06:08

There's the native stuff in https://www.emacswiki.org/emacs/WindowResize and I also have my own emacs resizing window library on melpa https://github.com/dpsutton/resize-window

ronen15:06:37

@dpsutton Right, I was just wondering if there was a way to customize it once so I don't have to resize each time I spin up a REPL. Thanks!

dpsutton15:06:44

ahhh i'm with you

dpsutton15:06:43

i can check at lunch

ronen15:06:21

Thank you 🙂

dotemacs15:06:27

@ronen see this blog post, half way down, not cider specific, but you can take inspiration from it to tweak it for your need: http://bastibe.de/2012-10-14-emacs-customizations.html

dpsutton15:06:01

that seems generic to emacs windows in general. In CIDER, there's nrepl-create-client-buffer-function which gets defined somewhere in the jack-in proceess and then later called. No grep on windows through emacs at work so at lunch i'll track this down. I'm guessing it can be tailored to exactly what @ronen wants to do

ronen16:06:43

@dpsutton thanks! I'll look into it