TIP Emacs Packages

From Gentoo Linux Wiki

Jump to: navigation, search
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)
Personal tools