Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defun open-two-buffers (b1 b2)
- (interactive "bBuffer1:\nbBuffer2:")
- (save-excursion
- (delete-other-windows)
- (split-window-horizontally)
- (switch-to-buffer b1)
- (set-window-buffer (next-window (selected-window)) b2)))
- (global-set-key "\C-xo" 'open-two-buffers)
Add Comment
Please, Sign In to add comment