Skip to content

Instantly share code, notes, and snippets.

@alphapapa
Created September 8, 2021 17:56
Show Gist options
  • Save alphapapa/c5458365e9940069e6a52a2a95b1ccff to your computer and use it in GitHub Desktop.
Save alphapapa/c5458365e9940069e6a52a2a95b1ccff to your computer and use it in GitHub Desktop.
(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