Is there any way to fix window buffer in emacs for cider / repl error

Using emacs 24.4, with clojure and cider-jack-in mode. At any time when I compute a wrong exception, the error buffer randomly replaces the buffers in any other screen dividers. Now I am looking for some configuration in init.el that helps me set up something like this:

  • When clojure / is selected or I opened the .clj file, cider-jack-in started by default.
  • The screen should be divided into 4 parts 1 current buffer / file that I opened, 1 more buffer with buffer, repl and clojure msg message buffer.
+5
source share
1 answer

I have two parameters in my initialization files related to a similar requirement:

 (add-to-list 'same-window-buffer-names "<em>nrepl</em>") 

same buffer window names is a built-in Emacs function.

The other is a helper function that I use that uses an extension of sticky windows.

 ;; Toggle window dedication (defun toggle-window-dedicated () "Toggle whether the current active window is dedicated or not" (interactive) (message (if (let (window (get-buffer-window (current-buffer))) (set-window-dedicated-p window (not (window-dedicated-p window)))) "Window '%s' is dedicated" "Window '%s' is normal") (current-buffer))) 

This is not a complete answer to your question, but hopefully a good starting point :)

+1
source

Source: https://habr.com/ru/post/1216412/


All Articles