Difference between revisions of "Installing Emacs"

From WikEmacs
Jump to navigation Jump to search
m (Reverted edits by Debrita (talk) to last revision by Bozhidar)
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
== Getting Emacs ==
+
== Emacs Releases ==
  
The latest released version of Emacs is [[:Category:Emacs-23.4 Emacs-23.4]].  The next higher revision of Emacs is [[:Category:Emacs-24.1 Emacs-24.1]] and is in ''Pretest' stage.
+
The latest released version of Emacs is [[:Category:Emacs-24.1|Emacs-24.2]].
  
Emacs is available on all popular [[:Category:Operating System]] inlcuding [[GNULinux]], [[OSX]] and [[Windows]].
+
== Installing Emacs ==
  
=== [[:Category:OS X| OS X]] ===
+
Emacs is available on all popular [[:Category:Operating System | operating systems]] including [[GNU/Linux]], [[OSX]], [[FreeBSD]] and [[Windows]].  See the respective pages for installation instruction and platform specific customization:
  
Obtaining Emacs 24 on OS X is really simple. There are several popular ways to do it.
+
* [[Installing Emacs on OS X]]
 +
* [[Installing Emacs on GNU/Linux]]
 +
* [[Installing Emacs on Windows]]
 +
* [[Installing Emacs on FreeBSD]]
  
==== As a binary package ====
+
[[Category:Install Or Upgrade‎]]
 
 
Simply download a pretest (or a nightly build) from [http://emacsformacosx.com Emacs for OSX].  Probably the best option would be to get the latest pretest from [http://emacsformacosx.com/builds here].
 
 
 
==== Build it from source ====
 
 
 
The second easy way to obtain Emacs 24 is via [http://mxcl.github.com/homebrew/ homebrew]. Just type the following incantation in your shell and you’re done:
 
 
 
<source lang="bash">
 
$ brew install emacs --cocoa --use-git-head --HEAD
 
$ cp -r /usr/local/Cellar/emacs/HEAD/Emacs.app /Applications/
 
</source>
 
The second step is optional, but it’s recommended if you like to start Emacs from the launchpad or from Spotlight.
 
 
 
Chances are good you have an older version of Emacs installed by default with OS X. It's suggested you to remove that older Emacs version to avoid conflicts with the new one. Do this:
 
 
 
<source lang="bash">
 
$ sudo rm /usr/bin/emacs
 
$ sudo rm -rf /usr/share/emacs
 
</source>
 
That’s all folk! You may now proceed to the configuration section.
 
 
 
==== Use a package manager (Emacs 23 only at time of writing) ====
 
 
 
* Fink
 
* MacPorts
 
<source lang="bash">
 
port install emacs
 
</source>
 
 
 
You can add <tt>+<variant> [+<variant>...]</tt> where <tt>variant</tt> is one or more of:
 
* dbus: Builds emacs with D-Bus support
 
* gtk: Builds emacs as an X11 program with GTK+2 widgets
 
* motif: Builds emacs as an X11 program with Motif
 
* universal: Build for multiple architectures
 
* x11: Builds emacs as a X11 program with Lucid widgets
 
The gtk, motif and x11 variants require (depend on) MacPorts' X11 libraries.
 
 
 
==== Download and install Aquamacs ====
 
 
 
=== [[:Category:Linux|Linux]] ===
 
 
 
Given that Linux is more or less the home os of Emacs it presents us with the most installation options. Of course, you can build Emacs from [https://github.com/emacsmirror/emacs source] on every distribution out there, but why bother to do so? Using the distribution’s package manager is a better idea for many reasons - you don’t need to install a build chain and lots of dev libraries, you get updated versions when they are released and you get automated dependency manager, just to name a few.
 
 
 
 
 
That said, few distributions include in their primary repositories builds of Emacs 24. Luckily there are some unofficial repos that come to the rescue.
 
 
 
Debian users should look no further than the amazing [http://emacs.naquadah.org/ emacs-snapshot APT repo]. You’ll find installation instructions there for all the relevant Debian versions out there. High quality, highly recommended builds! After you’ve added the repo you can install Emacs 24 with the following command:
 
 
 
<source lang="bash">
 
$ sudo apt-get install emacs-snapshot
 
</source>
 
Ubuntu users have easy access to Emacs 24 as well:
 
 
 
<source lang="bash">
 
$ sudo apt-add-repository ppa:cassou/emacs
 
$ sudo apt-get install emacs-snapshot
 
</source>
 
Gentoo users have even less to do, since Emacs 24 can be obtained via the emacs-vcs package in portage, as noted in the official [http://www.gentoo.org/proj/en/lisp/emacs/emacs.xml Emacs on Gentoo page].
 
 
 
Arch Linux users can install Emacs 24 from the Arch User Repository ([http://aur.archlinux.org/index.php AUR]) with the package [http://aur.archlinux.org/packages.php?ID=33337 emacs-bzr].
 
 
 
Slackware users can compile and install Emacs 24 by using the following unofficial SlackBuild script: [http://github.com/cycojesus/slackbuilds/tree/master/e/emacs emacs.SlackBuild].
 
 
 
Unfortunately they don't seem to be any prebuilt Emacs 24 packages for any of the RPM distros (Fedora, SUSE, Mandriva, etc).
 
 
 
=== [[:Category:Windows|Windows]] ===
 
 
 
 
 
[[Category:Getting started]]
 

Revision as of 20:20, 7 December 2012

Emacs Releases

The latest released version of Emacs is Emacs-24.2.

Installing Emacs

Emacs is available on all popular operating systems including GNU/Linux, OSX, FreeBSD and Windows. See the respective pages for installation instruction and platform specific customization: