Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Mac Lion, I was trying to install Emacs 23.3 using these instructions and others.

Emacs 23 didn't work, and I lost the one that was already there (emacs 2. something). Now, when I type: emacs in the terminal, I get: -bash: Emacs: command not found.

Can anyone instruct me how to get it back?

share|improve this question

migrated from Dec 4 '11 at 0:26

This question came from our site for professional and enthusiast programmers.

Are you sure is says Emacs: command not found? Try emacs in lower-case; commands in the terminal are case-sensitive. – Lindydancer Nov 24 '11 at 11:03
Yes, and I tried typing it in lower-case and I got: -bash: emacs: command not found – stupidity Nov 24 '11 at 14:36

Another Emacs distribution for Mac that works fine under Lion. This is not for running in the terminal though.

share|improve this answer
Thanks indeed for this. I hope I could fix my emacs issue though. – stupidity Nov 24 '11 at 14:41
The standard Cocoa emacs build works fine in a terminal. You can invoke it as: /Applications/ -nw. – Asher L. Nov 25 '11 at 4:19
So, I guess that adding /Applications/ to PATH would do the trick? PATH probably doesn't contain a path inside the package. – klang Nov 28 '11 at 14:40

IIRC, the included copy of emacs is in /usr/bin so typing /usr/bin/emacs in Terminal should invoke it for you.

That directory should be in your path though, so you may have problems unrelated to emacs. If you echo $PATH does it display reasonable output?

share|improve this answer
$ cd /usr/bin/emacs -bash: cd: /usr/bin/emacs: No such file or directory – stupidity Nov 24 '11 at 14:40
Hrm, it sounds like you lost emacs. – blahdiblah Nov 24 '11 at 19:22
Yeah :/ I hate it anyways :p Gonna use Aquamacs instead. – stupidity Nov 25 '11 at 0:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.