From 165752b325a36aa3ce9cc4e6fd19252c4e9a8f93 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 1 Apr 2018 21:26:58 -0400 Subject: [PATCH] Make suspend-frame (C-x C-z) not try to suspend graphical emacs It was hard to get out of and not helpful anyways --- .emacs.d/init.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index d7b7c4c..5afd9d4 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -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