Changes between Initial Version and Version 1 of EmacsOnGentoo

Show
Ignore:
Timestamp:
09/12/2007 01:56:14 PM (6 years ago)
Author:
Anders Bach Nielsen <abachn@daimi.au.dk>
Comment:

Emacs on Gentoo guide, some information is not gentoo specific!

Legend:

Unmodified
Added
Removed
Modified
  • EmacsOnGentoo

    v1 v1  
     1== Emacs on Gentoo == 
     2 
     3First of all Emacs is a super great editor and programming environment. Secondly Gentoo linux gives to a meta package system that makes installing packages from source as easy as picking your nose! Emacs is in portage with both the stable 21.4 and the unstable 22.1. This guide expects you to love emacs and for that reason want to have the newest version installed :-) 
     4 
     5{{{ 
     6echo "=app-editors/emacs-22.1" >> /etc/portage/package.keywords 
     7echo "=app-editors/emacs-22.1 X Xaw3d alsa gif gtk jpeg png spell tiff xpm" >> /etc/portage/package.use 
     8emerge -av emacs 
     9}}} 
     10 
     11Depends on what you have installed at this point and if your use flags match with the ones given above, it can take a while. After a cup of coffee or two you should have emacs installed and ready to use. Now for the fun part, installing the emacs extensions via portage! 
     12 
     13{{{ 
     14emerge -av app-emacs/color-theme app-emacs/ecb app-emacs/cedet app-emacs/doxymacs 
     15}}} 
     16 
     17NB: cua.el and ido.el are part of emacs 22.1 so there is no need to install them. If you run 21.4 you have to install them by hand. 
     18 
     19Now we need to setup emacs to load the installed packages. Add the following to your ~/.emacs file. 
     20 
     21{{{ 
     22;; Semantic option package CEDET 
     23(setq semantic-load-turn-useful-things-on t) 
     24 
     25(load "/usr/share/emacs/site-lisp/site-gentoo") 
     26 
     27;; CEDET and Semantic options 
     28(semantic-load-enable-excessive-code-helpers) 
     29 
     30;; Selecting color theme can be changes using M-x color-theme-<name> 
     31(require 'color-theme) 
     32(color-theme-initialize) 
     33;; setting color-theme to my favorite ;-) 
     34(color-theme-hober) 
     35 
     36 
     37;; Include ECB as evironment for editing C or C++ files 
     38(require 'ecb) 
     39;; this directory has to exist !! 
     40(setq semanticdb-default-save-directory "~/.emacs.d/semantic") 
     41 
     42 
     43;; Load the cua mode, provides windows like key combinations (build into emacs 22.1) 
     44(cua-mode t) 
     45 
     46;; To get the alternative switch-to-buffer and find-file functions in 
     47;; this package bound to keys, do 
     48(require 'ido) 
     49(ido-mode t) 
     50}}}