I am trying to start emacs with both eshell and the specified file, but displaying the buffer with the file.
When I add the following line to emacs
(add-hook 'emacs-startup-hook (lambda () (eshell)))
then eshell also loads on startup with the file, but eshell is shown instead of the file.
I tried to change the
initial-buffer-choice variable so that the file is shown instead, but am not sure what function to give to return the file specified in command line.
Can anyone please give me some ideas?