Emacs: How to use shell command with emacs?

I am trying to use a shell command to facilitate commands such as adding directories, etc., while in emacs. I have problems with work.

Input M-!, and then my minibuffer says Shell command:, but none of my commands are accepted. For example, when I enter pwdor lsI get messages like pwd is not recognized as an internal or external command, operable program, or batch file.. Any suggestions?

I used this link, but it doesn't seem to help in my situation:

http://www.nongnu.org/emacsdoc-fr/manuel/shell.html

Additional Information I am using Windows 7. I also have cygwin64 installed, if that matters. Is emacs just a connection to an external shell or a shell built into emacs? If the shell is external, I can connect to cygwin64 (although this may not be worth the problem).

Any suggestions for proper setup? I found the following resource, but I'm not sure if this is the right direction: http://www.emacswiki.org/emacs/EmacsApp

+4
source share
1 answer

It looks like you need to make sure that the variable exec-pathcontains the directories in which these commands are located ( lsetc.).

Emacs ( Emacs Lisp C), , .

+2

All Articles