Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(cl-defun ap/display-buffer-in-side-window (&optional (buffer (current-buffer)))
"Display BUFFER in dedicated side window."
(interactive)
(let ((display-buffer-mark-dedicated t))
(display-buffer-in-side-window buffer
'((side . right)
(window-parameters
(no-delete-other-windows . t))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment