Emacs on Ubuntu Linux

Perm url with updates: http://xahlee.org/emacs/emacs_on_ubuntu_linux.html

Installed Ubuntu Linux recently, together with emacs 23.2.1 on it. Of course, then i grabbed ErgoEmacs. I was half expecting whatnot bugs or at least some frustration, but actually, it's quite smooth! I've been using ErgoEmacs for about 4 years now and it'd be quite painful to fall back to plain old GNU Emacs.

Still, i did find a few problems.

Emacs Dired Recursive Load Error

Once you loaded ErgoEmacs, everytime you try to open a file or directory, you get a “Recursive load” error:

expand-file-name: Recursive load: "/usr/share/emacs/23.2/lisp/net/tramp.elc", "/usr/share/emacs/23.2/lisp/shell.elc", "/usr/share/emacs/23.2/lisp/net/tramp.elc", "/usr/share/emacs/23.2/lisp/shell.elc", "/usr/share/emacs/23.2/lisp/net/tramp.elc", "/usr/share/emacs/23.2/lisp/shell.elc", "/usr/share/emacs/23.2/lisp/net/tramp.elc", "/usr/share/emacs/23.2/lisp/shell.elc", "/usr/share/emacs/23.2/lisp/net/tramp.elc"

(Tramp is a package integrated with GNU emacs. It lets you work with files in remote servers.)

I couldn't think of where that error came from. Plain GNU Emacs doesn't have that error, only when ErgoEmacs is loaded. However, ErgoEmacs doesn't redefine “find-file” in any way. A Google search turns up a post in GNU emacs mailing list. See: The old tramp recursive load (2011-05-08) By FredCroot. @ Source lists.gnu.org.

There seems to be some change in tramp. The solution suggested is just to load tramp in your init file, and that solved the problem for me. Like this:

(require 'tramp)

Linux/Emacs Copy/Paste Problem

In linux, if copy/paste doesn't work with other apps, you need to add this line:

(setq x-select-enable-clipboard t)

X11, Jamie Zawinski, Don Hopkins

Emacs's kill-ring is independent of OS's clipboard, and added to the complexity is that X11 itself has very complex and idiotic copy/paste system. (X11 itself is a complete fuckup, inside out.) See:

Note that Jamie Zawinski (aka jwz) is a celebrity. See:

Don Hopkins is also well known. See the Wikipedia article linked at the bottom of the bottom of The X-Windows Disaster.

Emacs isn't Bundled with Linuxes

Am rather pissed that emacs isn't bundled by default with Ubunto. In fact, when you try to install it, it's considered a un-supported package (i.e. in the package category of “universe”.) That's kinda a flying-fuck-in-the-face insult to the number one FSF Free software.

Ubuntu Linux Package Classfication
FSF Free softwareNon-FSF-free software

Of course, i know why linuxes don't support emacs. It's because the haughty GNU Emacs people refuse to make it work well. When a software's copy/paste doesn't work with the rest of the system, and with its key shortcuts and terminology completely incompatible with the rest, how could Gnome, KDE, Debian, Ubuntu, promote it as first-class citizen?

(on the other hand, vi is always bundled, because it's more considered as a sys admin tool, part of the shell tool bag, used inside text terminal. (See also: Emergency vi (vi tutorial)))

Reunion with unix

The last time i worked in unix daily in a serious way is from 1998 to 2002 (not counting Mac OS X). It is good to be back! Emacs is significantly faster when in linux than compared to on Windows. Starting up ErgoEmacs takes about 5 times faster! (4 secs on Linux, perhaps 16 seconds on Windows) I guess there's a lot muck going on going thru Windows API, and i know for a certainty that FSF actively resist in improving emacs for Microsoft Windows. Spell checking a file on linux is i estimate at least 10 times faster than compared to doing it in Windows emacs with aspell thru Cygwin.

Also, in Windows, with Cygwin, it's one big headache. You have to install every tool (rsync, unison, curl, wget, ssh, perl, python, imagemagick, optipng/pngcrush, w3m, aspell, zip/unzip, …). The Cygwin installer is one piece of unintuitive error-prone shit. The package depository mirror sites keep coming and going. The Windows Console is one worst command line interface possible in my 15 years of using over 10+ command line consoles. I don't think Microsoft has updated it for 10 years. (though, they did create the powerful PowerShell with its own very functional command line interface.)

Window Managers, Now and Then

In Linux, the terminal is just great. The last time i used linux is around 2000. At the time, the Gnome project is barely announced (first release in 1999). Now, gnome-terminal is fantastic, even support tabs. The terminal app on X11 i had in mind is xterm, and whoa it's still there, runs, with its bitmapped font, just as i remembered it. The clunky X11 of 10 years ago with its concrete-slab appearance and its tens of idiotic so-called “window managers” are gone, replaced today with Gnome. (initially, KDE and Gnome's look-n-feel is 100% copy of MS Windows, but now seems diverged.)

It feels sooo good to be back with unix terminal.

X11 on Solaris. (img src en.wikipedia.org) This is CDE. This is how i remember X11, ~1999. Mac OS of the time, or even Windows, is ten times better. (See: The Unix Pestilence.)

Here's some old school window manager CDE, Motif, AfterStep, GNUstep, Window Maker.

Popular posts from this blog

11 Years of Writing About Emacs

does md5 creates more randomness?

Google Code shutting down, future of ErgoEmacs