Been scouring the internet for a couple days now trying to figure out the solution to my question with no luck. Hopefully someone here knows how to do this.
I'm currently trying to set up my EMACS to be able to run a .bat file on my Windows 7 machine through the "M-x shell" command. If I open up a shell and navigate to my directory and run BuildDTO.bat it works just fine. I've also got an odd kind of solution that runs the command but only opens the output of the command in a buffer once it's finished running. The code in my .emacs file is shown below:
(defun compile ()
"Runs a quick compile on the code. Note this is specific to this work environment."
(interactive)
(with-current-buffer
(shell-command "PATH_TO_BAT/BuildDTO.bat")))
Here I am binding the compile command to my "M-m":
(global-set-key (kbd "M-m") 'compile)
My issue is that I want to maven going through the steps of compiling. Going through "M-x shell" and running the DTO creates a nice scrolling buffer with the output of each step but the compile() function does not. Any suggestions about how I could get this work? I'm kind of new to EMACS so I apologize if this is a rather dumb question but I can't figure out the solution.
Thanks,