Using emacs 24.4, with clojure mode and cider-jack-in
. Anytime I evaluate a wrong exception the error buffer randomly replaces buffers in any other screen splits. Now I am looking for some configuration in init.el which help me to configure something like this:
.clj
file, cider-jack-in
started by default.I have two settings in my init files related to similar requirement:
(add-to-list 'same-window-buffer-names "<em>nrepl</em>")
same-window-buffer-names is a built-in feature of Emacs.
The other one is a helper function I use that harnesses the sticky-windows extension.
;; 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)))
It's not a full answer to your question, but hopefully a good starting point :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With