Prevent eval results from consuming > half the frame

This commit is contained in:
Henrik Lissner 2019-12-05 20:48:53 -05:00
parent 8809bbc33d
commit 318754c4d2
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -18,7 +18,9 @@
(+word-wrap-mode +1)
(visual-line-mode +1)))
(when-let (win (display-buffer output-buffer))
(fit-window-to-buffer win))
(fit-window-to-buffer
win (/ (frame-height) 2)
nil (/ (frame-width) 2)))
(select-window origin)
output-buffer)
(message "%s" output)))