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