Closed philipsd6 closed 1 year ago
I've modified if locally (without pushing) to:
(defun my/kill-emacs ()
"Delete frame or kill Emacs if there is only one frame."
(interactive)
(condition-case nil
(delete-frame)
(error (save-buffers-kill-terminal))))
That works for me, I'll incorporate it in my config. Thanks!
nano--delete-frame-or-kill-emacs
(C-c C-x) after extended use frequently results in an error:This is because the code is checking for a
frame-list
> 1, and the list has multiple frames, but only one is left visible. I don't know why I have so many invisible frames, but daemon-mode for one will always be at least one more frame than one, right?