Fork me on GitHub
#cider
<
2022-03-24
>
edipofederle11:03:24

Hi, There is a way to keep the REPL buffer always opened? something similar on how Cursive works . Thanks for help.

magnars11:03:36

You can make Emacs do many cool things, but I'm not entirely sure how you can sticky a buffer. Instead, how about some useful features that might alleviate your problem? If you want to quickly show the REPL-buffer, you can type C-c C-z . To evaluate code in the current buffer, type C-x C-e . To show the result in a separate window, type C-c C-p .

edipofederle11:03:07

Yep, the C-c C-z is useful here.

magnars11:03:10

Good to hear. In that case, another tip is to use C-c C-z while in the repl-buffer to go back to where you were in the other buffer.

1
César Olea14:03:23

You can also open a new Emacs window (called frames in Emacs) with C-x 5 2 and have it display the REPL at all times. If the REPL has focus when C-x 5 2 the new frame will have the REPL buffer on top by default.

edipofederle15:03:51

Good option too, thx César!

camdez16:04:27

If you just want to keep Emacs from taking over that window for a different purpose you can just run M-: (set-dedicated-window-p nil t) RET

🙌 1
camdez16:04:23

In case your bindings are non-standard:

M-: runs the command eval-expression (found in global-map), which is
an interactive compiled Lisp function in 'simple.el'.

It is bound to M-:, M-ESC :.

🙌 1