Create or popup Emacs frame immediately. Handle 2 monitors case for windows & frames navigation.
See also: emacs-anywhere.
+--------------------+ +--------------------+
| | |.......Emacs.......x|
| | |. .|
| O O | |. .|
| | | => |. (current-buffer) .|
| \_____/ | |. .|
| | |. .|
| | |....................|
+--------------------+ +--------------------+
|| ||
-------- --------
Linux
Install wmctrl
, e.g.:
sudo apt-get install wmctrl
Add hotkey to eframe-jack-in\linux\switch-to-emacsclient
.
Windows
Actually, you can create a shortcut to
eframe-jack-in\windows\switch-to-emacsclient.bat
and add hotkey to it,
but sometimes the response of this call can take many seconds.
To make it quick you shold run tiny eframe-jack-in.exe
trayer program.
chocolately note
(setq eframe-omit-buffers-patterns (list "*nrepl-messages"))
Use iconify-or-deiconify-frame
as always, e.g.:
(global-set-key (kbd "M-z") 'iconify-or-deiconify-frame)
+--------------------+ +--------------------+ +--------------------+ +--------------------+
|........Emacs......x| | | |........Emacs......x| |........Emacs......x|
|. .| | | |. .| |. .|
|. .| | O O | |. .| |. .|
|. (current-buffer) .| | | | => |. (current-buffer) .| |. (current-buffer) .|
|. of frame 1 .| | \_____/ | |. of frame 1 .| |. of frame 2 .|
|. .| | | |. .| |. .|
|....................| | | |....................| |....................|
+--------------------+ +--------------------+ +--------------------+ +--------------------+
|| || || ||
-------- -------- -------- --------