Prevent eval results from consuming > half the frame
This commit is contained in:
parent
8809bbc33d
commit
318754c4d2
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user