Gentoo Archives: gentoo-dev

From: Andreas Voegele <voegelas@×××××××××××××××××.net>
To: gentoo-dev@××××××××××.org
Subject: [gentoo-dev] Re: Emacs settings for ebuild scripts
Date: Fri, 09 Nov 2001 17:38:08
Message-Id: m2adxva9qi.fsf@columbus.localdomain
1 Hi,
2
3 > Ebuild writers may add the following Emacs Lisp code to their .emacs
4 > file. The code adds an ebuild mode which is based on the shell mode
5 > and sets the tabwidth to 4.
6 >
7 > (define-derived-mode ebuild-script-mode
8 > sh-mode "Ebuild-script"
9 > "Major mode for editing ebuild scripts.
10 > \\{ebuild-mode-map}"
11 > (setq tab-width 4))
12 >
13 > (setq auto-mode-alist
14 > (append
15 > '(("\\.ebuild$" . ebuild-script-mode))
16 > auto-mode-alist))
17 >
18 > I've tested this code with GNU Emacs. Can anyone check if the code
19 > works with XEmacs?
20
21 I've just verified that this code works with XEmacs.
22
23 --
24 Bye,
25 Andreas