Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

upgrading console emacs (/usr/bin/emacs) on Mac

I extensively use /usr/bin/emacs in Terminal.

I have Emacs 22 and I'd like to upgrade it to 23. I wonder how to do it.
Googling "emacs download mac" gives me Emacs.app which has its own window and user interface, but I don't want that.

I am not sure how I have /usr/bin/emacs in the first place, maybe it came with Mac OS?

like image 836
eugene Avatar asked Nov 04 '11 05:11

eugene


People also ask

Can I use Emacs on Mac?

There are many Emacs clients on macOS. The recommended version on macOS is Emacs Mac Port, but others are good as well.

Is Emacs pre installed on Mac?

OS X comes with a preinstalled version of Emacs, but alas it is the outdated Emacs 22. Fortunately, obtaining a newer release is really simple. There are several popular ways to do it.


3 Answers

You can run the Emacs.app version in a terminal like this:

/Applications/Emacs.app/Contents/MacOS/Emacs -nw 

In my .cshrc file, I use an alias to make this easier to invoke:

alias enw '/Applications/Emacs.app/Contents/MacOS/Emacs -nw' 
like image 78
Asher L. Avatar answered Sep 24 '22 13:09

Asher L.


It is a standard editor included with OS X and a lot of other *nix systems along with vi/vim, and pico. Personally i wouldnt upgrade the pre-installed one. I would install from Macports, Fink, or Homebrew or compile from source myself to a different location (like /usr/local).

like image 35
prodigitalson Avatar answered Sep 26 '22 13:09

prodigitalson


Install emacs from macports.

% sudo port install emacs

Then launch it from the terminal

like image 42
Dan Kruchinin Avatar answered Sep 23 '22 13:09

Dan Kruchinin