4

I am trying to use the shell command to facilitate commands like adding directories, etc. while in emacs. I am having problems getting it to work.

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

I used this reference, but it does not seem to help with my situation:

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

Extra Info I am using Windows 7 OS. I also have cygwin64 installed, if that matters. Is emacs just connecting to an external shell, or is the shell built into emacs? If the shell is external, can I connect to cygwin64 (although it may not be worth the trouble).

Any suggestions on how to configure this properly? I found the following resource, but I am not sure whether this is the right direction: http://www.emacswiki.org/emacs/EmacsApp

4
  • What kind of OS do you use? Commented Jan 18, 2014 at 0:02
  • I am using Windows 7. Commented Jan 18, 2014 at 0:11
  • 2
    You might consider using Emacs's built-in directory-editing mode (dired); you can just visit a directory file (C-x C-f, enter the directory's name, RET) and operate on it there; e.g. + to add a directory. Commented Jan 18, 2014 at 0:21
  • 2
    emacswiki.org/emacs/NTEmacsWithCygwin Commented Jan 18, 2014 at 3:26

1 Answer 1

2

Sounds like you need to make sure that variable exec-path includes the directories where those commands (ls etc.) are located.

That error message does not appear to be an Emacs error message (from the Emacs Lisp or C source code), but rather it seems to come from the shell that tries to execute your command.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.