(This is a followup and different from Emacs Fixed Layout )
High Level
My typical Emacs Working environment is:
+------------+--------------------------+--------------------------+
| NeoTree | Main | Rhs |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
+------------+--------------------------+--------------------------+
where Main = some *.clj *.cljs file I'm editing, and RHS = cide-repl or cljs repl or eshell
Problem
Sometimes, some emacs functions screw up this layout. Examples: looking up documentation, running cider-debug, showing exceptions, etc ...
What I want:
I would a way to bind some keys, say C-x 1, C-x 2, C-x 3 (yes, I know this is terrible choice, but not focus of question) wherE:
C-x 1 = hide all existing windows, fire up 3-pane setup, with Neotree + last edited clj/cljs file, and RHS = cider-repl C-x 2 = same as C-x 1, but cljs-repl in RHS C-x 3 = same as C-x 1, but eshell in RHS
Question:
The main feature I need in this is a function to say:
hide all existing windows
create this three pane setup
How do I do that?
Thanks!
Edit: How is this different from original question:
Original question: how can I force emacs to use this 3 pane setup.
This question: emacs is going to screw up my 3 pane setup. How do I have a three-key recovery shortcut?
example-fn
in the following link demonstrates how to programmatically create a 3-way window setup -- you can adjust it as needed (e.g., split left, right, up, or down): emacs.stackexchange.com/a/26970/2287 The function to hide all existing windows, except the selected window, isdelete-other-windows
. I don't use cider/repl etc., so I cannot help you there. Keyboard shortcuts are a different question, and there are plenty of examples available by Googling. And as stated in your previous thread,set-window-dedicated-p
is your friend.elscreen
, which provides for a tabbed visual aid to switch between them.winner-mode
might be of interest too - gnu.org/software/emacs/manual/html_node/emacs/…