[Emacs] Use display-buffer-use-some-frame for frames-only

This seems to be what I had wanted all along. Things seem to work quite
well now.
This commit is contained in:
Ivan Malison 2016-11-07 16:49:31 -08:00
parent 531bca108b
commit a97eaede08
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -1179,12 +1179,9 @@ programming mode.
(apply 'imalison:display-buffer-other-frame-or-window args)
(apply 'display-buffer-same-window args)))
(defun imalison:display-buffer-other-frame-or-window (buffer &rest args)
(defun imalison:display-buffer-other-frame-or-window (&rest args)
(if (imalison:use-frames-only)
(display-buffer buffer '((display-buffer-reuse-window
display-buffer-pop-up-frame)
(reusable-frames . t)
(inhibit-same-window . t)) t)
(apply 'display-buffer-use-some-frame args)
(apply 'display-buffer-reuse-window args)))
(defun imalison:split-window-right ()