Currently I'm using the following display-buffer-alist
,
which works fine but resets the size on opening a new window.
Is there a way to only use the window-height
when first creating the window? After this, any resizing I do should be kept instead of being reset (when viewing another commit in this example).
(push
(list
"\\`magit-revision: "
(list 'display-buffer-reuse-window 'display-buffer-below-selected)
(cons 'window-height 0.8)
(cons 'reusable-frames 'visible))
display-buffer-alist)
display-buffer-alist
accepts custom functions that can do whatever the heart desires:(add-to-list 'display-buffer-alist '("REGEXP" . (my-custom-function)))
The custom function takes two arguments:BUFFER
ALIST
.