Emacs for OpenSolaris
So I'm now using OpenSolaris fulltime on my laptop (WoHoo!). I came across the fact that it doesn't have emacs there. So I did the obvious thing:
pkg search -r emacs. Unfortunately this showed that there isn't currently an emacs package in OpenSolaris. No worries, I have a compiler and will travel. So I went and downloaded the source.
I discovered there were a few steps that I needed to follow in order to be able to build this properly:
pfexec pkg install SUNWgnome-common-devel
pfexec pkg install SUNWxorg-headers
Now that is done we can get to work:
tar xf emacs-22.3.tar.gz
cd emacs-22.3
./configure --with-gtk
make -j 10
pfexec make install
So now that is done and we have a working emacs installed. There was one last thing I noticed. The Meta key is not mapped to Alt, so I had to add
keycode 64 = Meta_Lto my .xmodmap and also the following to my .bashrc:
if [ -f ${HOME}/.xmodmap ]
then
xmodmap ${HOME}/.xmodmap
fi
all is now right with the world.

Nice work! It's always good to be able to bootstrap
emacs onto a system that doesn't have it.
Emacs integrated into Nevada build 100 (SFW gate), and will
be part of the 2008.11 OpenSolaris release, so there will
soon be good news for those who don't want to roll their own
as well.
Posted by Ali Bahrami on October 08, 2008 at 12:49 PM PDT #