Fork me on GitHub
#emacs
<
2017-10-13
>
qqq09:10:29

what's the emacs command for "this frame/window is bound to this buffer, and may never change"

ag18:10:14

purpose.el package is what you're looking for

mgrbyte09:10:49

@qqq not sure such a thing exists

mgrbyte09:10:25

is that for when you want to have a separate window displaying something and you always want that something in it?

qqq10:10:15

@mgrbyte: yeah, I want window/frames dedicated to cider-repl and cider-errolr

qqq10:10:26

but for some reason, these buffers tend to 'jump around'

qqq10:10:37

I want dedicated windows, where I place via my window manager, for cider-error and cider-repl

acron11:10:28

@qqq iirc when something like cider creates a new buffer it calls an emacs fn split-window-sensibly which, roughly, picks your biggest window and splits it in half, creating a new window

acron11:10:24

you could override split-window-preferred-function (which defaults to split-window-sensibly) and provide a fn which attempts to put windows where you want them