Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
    
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
add comment

migrated from stackoverflow.com Dec 4 '11 at 0:26

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

2 Answers

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/Emacs.app/Contents/MacOS/Emacs -nw. –  Asher L. Nov 25 '11 at 4:19
    
So, I guess that adding /Applications/Emacs.app/Contents/MacOS/ to PATH would do the trick? PATH probably doesn't contain a path inside the Emacs.app package. –  klang Nov 28 '11 at 14:40
add comment

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
add comment

Your Answer

 
discard

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.