Stickiness in Emacs multi-term
This adds stickiness to multi-term buffers so that they stick to their own windows.
mv ~/.emacs.d/elpa/multi-term-<package-version>/multi-term.el ~/.emacs.d/elpa/multi-term-<package-version>/multi-term.el.bak
mv ~/.emacs.d/elpa/multi-term-<package-version>/multi-term-autoloads.el ~/.emacs.d/elpa/multi-term-<package-version>/multi-term-autoloads.el.bak
git clone https://github.com/shrir/emacs-multi-term-stickiness.git
cp emacs-multi-term-stickiness/multi-term.el ~/.emacs.d/elpa/multi-term-<package-version>/multi-term.el
cp emacs-multi-term-stickiness/multi-term-autoloads.el ~/.emacs.d/elpa/multi-term-<package-version>/multi-term-autoloads.el
Multiple terminal buffers are quite useful but sometimes you loose track of how many you have open. And its a bit annoying to cycle through them to find the one you are looking for.
You decide but here’s when it makes most sense:
If you need to see all terminal buffers(especially if you have plenty screen estate). Use a toggle switch `multi-term-stickiness-toggle` or turn it on by default in your Emacs configuration with `(multi-term-stickiness t)`
If you have too many terminal buffers open, its easier to switch with sticky mode on.
- If you’re not already in sticky mode, turn it on `multi-term-stickiness-toggle`.
- Switch to the buffer# of your choice or with `multi-term-next`/`multi-term-prev`.
- Turn sticky mode off with the toggle switch, if it bothers you.
multi-term pop up/out(with `shell-pop`) does not pop up/out all sticky terminal windows together. A work around is to switch to the main multi-term window and then pop it out.