Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10845 - addition to Gentoo Linux Developers HOWTO docs for emacs users (currently a TODO)
Summary: addition to Gentoo Linux Developers HOWTO docs for emacs users (currently a T...
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-developer
Classification: Unclassified
Component: Developers HOWTO (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Eric Stockbridge
URL: http://www.gentoo.org/doc/en/gentoo-h...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-16 16:47 UTC by Matthew Kennedy (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Kennedy (RETIRED) gentoo-dev 2002-11-16 16:47:57 UTC
---cut---
If you're using GNU Emacs, you can put the following in your ~/.emacs:

(defun ebuild-mode ()
  (shell-script-mode)
  (sh-set-shell "bash")
  (make-local-variable 'tab-width)
  (setq tab-width 4))
(setq auto-mode-alist (cons '("\\.ebuild\\'" . ebuild-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.eclass\\'" . ebuild-mode) auto-mode-alist))
---cut---

Background: this defines a simple function which inherits everything from Emacs'
shell-script mode and sets a few variables for .ebuild and .eclass editing. I've
been using this for about a year for my own dev work. It works fine for me.

Matt
Comment 1 Eric Stockbridge 2002-11-16 20:39:45 UTC
I will take care of this
Comment 2 Rendhalver (RETIRED) gentoo-dev 2002-11-17 02:42:51 UTC
i just tested this in XEmacs and it works fine for me
so changing the first line to
--------------
If you're using GNU Emacs or XEmacs, you can put the following in your ~/.emacs
for GNU Emacs or your init.el file file XEmacs:
--------------

would be good