I am developing Rails and find that I need to create a wrapper, rename the buffer (like webrick) and then run the command (rails s) and then do it all over again if I want a rails console or rails dbconsole, rspec, spork and etc. every time i run emacs.
I hope for something like this:
(defun spawn-shell () "Invoke shell test" (with-temp-buffer (shell (current-buffer)) (process-send-string nil "echo 'test1'") (process-send-string nil "echo 'test2'")))
I donβt want the shell to leave when it exits because the output in the shell buffer is important, and sometimes I need to kill and restart it, but I donβt want to lose this story. Essentially, I want to take the manual process and make it invokable.
Any help is much appreciated
Tom
source share