Created
December 1, 2022 19:04
-
-
Save imarko/533968f8ab10775c9555ace9c2f39e3e to your computer and use it in GitHub Desktop.
Disable C-z suspend in GUI mode but keep it working for tty.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun my-suspend () | |
(interactive) | |
(if (controlling-tty-p) | |
(suspend-emacs) | |
(suspend-tty))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment