Guest User

Untitled

a guest
Feb 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. (defun open-two-buffers (b1 b2)
  2. (interactive "bBuffer1:\nbBuffer2:")
  3. (save-excursion
  4. (delete-other-windows)
  5. (split-window-horizontally)
  6. (switch-to-buffer b1)
  7. (set-window-buffer (next-window (selected-window)) b2)))
  8. (global-set-key "\C-xo" 'open-two-buffers)
Add Comment
Please, Sign In to add comment