emacs open side by side from command line

view full story

http://www.linuxquestions.org – Hi, everybody. I have a problem. I want to be able to open files in emacs side by side from command line. like this: Code: emacs -sbs file1.txt file2.txt So I added the following code into my .emacs file Code: (defun open-side-by-side (switch)       (let ((file1 (pop command-line-args-left))             (file2 (pop command-line-args-left)))         (split-window-horizontally)         (find-file file1)   &n (HowTos)