Created
September 8, 2021 17:56
-
-
Save alphapapa/c5458365e9940069e6a52a2a95b1ccff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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