Running Windows batch files from Emacs -
i'm new gnu emacs, , perhaps noob question, have few batch files use lot when coding in emacs compile/build/execute/debug/etc. wondering how a) run these batch files emacs without having keep opening cmd prompt window or going windows explorer , b) bind key shortcut (perhaps specify file?) have seen several things online running emacs in batch-mode, don't believe i'm looking for. , know possible because have seen others run batch emacs (output , appear in new buffer adjacent current if did c-x 3
)
thanks in advance!
to run arbitrary shell command in emacs, call shell-command
bound m-!
see c-hf shell-command
(or c-hkm-!) details.
i believe in windows-native emacs, default shell cmd
(or alias thereof), i'm reasonably confident you're thinking of.
i'm not sure whether of following work in windows, related commands are:
- m-& -
async-shell-command
- m-| -
shell-command-on-region
and prefix argument (e.g. c-um-!) of commands insert shell command's output current buffer. (in case of shell-command-on-region
, replaces region.)
Comments
Post a Comment