Skip to content

Instantly share code, notes, and snippets.

@agumonkey
Created November 28, 2018 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agumonkey/5f3a74488655839a03a62ac5da287baf to your computer and use it in GitHub Desktop.
Save agumonkey/5f3a74488655839a03a62ac5da287baf to your computer and use it in GitHub Desktop.
helper to open a new buffer in the other-window
;;; is there a built-in or idiomatic way to do that ?
(defun new-other-buffer ()
(interactive)
(let ((n (generate-new-buffer-name "new")))
(let ((b (get-buffer-create n)))
;;(split-window-right)
(switch-to-buffer-other-window b))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment