Installing Emacs 22 on Ubuntu Feisty Fawn
Update: Emacs22 is now available via apt. Before trying this try sudo apt-get install emacs22. You will still need to edit your .emacs file as instructed in the last paragraph to handle Java annotations.
Emacs 22 is now released. I have installed on my Ubuntu Feisty Fawn system. The package is not yet available on the apt repositories, so this required building from source. Here are the steps I followed:
Install prerequisites as follows:
sudo apt-get install g++
sudo apt-get install libgtk2.0-dev
Download the source from http://ftp.gnu.org/pub/gnu/emacs/emacs-22.1.tar.gz.
After unpacking, run:
./configure --with-gtk --enable-font-backend --with-xft --with-freetype
make
sudo make install
Voila! The executable is now installed at: /usr/local/bin/emacs-22.1
The java-mode still does not handle annotations correctly. Getting around this requires adding the following to the ~/.emacs file. It simply treats annotations as comments:
(add-hook
'java-mode-hook
'(lambda () "Treat Java 1.5 @-style annotations as comments."
(setq c-comment-start-regexp "(@|/(/|[*][*]?))")
(modify-syntax-entry ?@ "< b" java-mode-syntax-table)))
Sunday 10 Jun 2007 | btomasini | Linux, Emacs, Ubuntu
if you include the library dependencies and flags to build with PNG support, you can also get non-hideous button-bar buttons
[…] reddit or digg or something, and decided to give it a spin on my Ubuntu machine. There’s an article about how to do it. (The comment makes the good point that you ought to give it image support too […]
yeah,
Thanks for the tip. Here is a revised configure command:
./configure –with-gtk –enable-font-backend –with-xft –with-png –with-tiff –with-jpeg –with-freetype
Instalar Emacs 22 en Feisty…
parece que solamente lo quieren relegar para gubuntu o a los backports, pero he aquĆ como hacerlo (ademas en este otro link existen unos screenshots www.goesping.org/wp-content/uploads/2007/07/newemacsstuff.png observen el cambio a gtk)…
very interesting.
i’m adding in RSS Reader
emacs22 does not support –enable-font-backend –with-xft –with-freetype