Gentoo Wiki


This article is part of the Tips & Tricks series.
Terminals / Shells Network X Window System Portage System Filesystems Kernel Other

Emacs doesn't automatically load packages installed through Portage. This line of Emacs Lisp-code should do it:

 (require 'site-gentoo)

This can be put in your ~/.emacs, or it can be put in /usr/share/emacs/site-lisp/site-start.el if you want to enable it for all users. Note: site-gentoo uses Emacs' autoload mechanism whereever possible, so packages are only loaded on-demand and increased startup times should no longer be an issue.

Furthermore, if you use your ~/.emacs on non-Gentoo platforms, you could put this in to make sure the require function doesn't cause errors:

 (require 'site-gentoo nil t)
Retrieved from ""

Last modified: Fri, 19 Oct 2007 00:13:00 +0000 Hits: 15,701