I'm using emacs gui in Gnome. After pressing ctrl+z, emacs window is minimized. However, if I bring the window to front, it doesn't respond any key press and mouse event. I searched the web only found bringing back it within the commandline. But how to reactive emace when using it in a GUI mode ??
If you press
C-z by mistake then you can add this to your .emacs to make C-z do nothing:
(global-unset-key (kbd "C-z"))
I did that after pressing C-z many times by accident.
to get Emacs back.
You may have to send the process a
SIGCONT signal. You normally do this in the console by running
kill -CONT $emacs_pid or
killall -CONT emacs. If you insist on a GUI solution, you can try the task manager shipped with your distro.
Send it a
killall -CONT emacs
WINCH signal also seems to work, so you can just resize the Emacs window.
Clicking on any menu items seems to work as well.
If you were running Emacs from a terminal,
fg ("foreground") or
%emacs would work.
To turn off it in Vim add to your
map <C-z> <Nop>