Make suspend-frame (C-x C-z) not try to suspend graphical emacs

It was hard to get out of and not helpful anyways
This commit is contained in:
Adam Goldsmith 2018-04-01 21:26:58 -04:00
parent 93d7f2b110
commit 165752b325
1 changed files with 8 additions and 0 deletions

View File

@ -230,6 +230,14 @@
(graphviz-dot-indent-line))
(delete-horizontal-space))))
(use-package frame
:config
(defun suspend-frame ()
"If running in a secondary tty, call `suspend-tty', else nop"
(interactive)
(when (eq (framep (selected-frame)) t)
(suspend-tty))))
;;;; external packages (required)
(use-package company :ensure
:config