From: Matthew Kennedy <mkennedy@gentoo.org>
To: David Spreen <netzwurm@debian.org>
Cc: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] Deveopers HOWTO
Date: 20 Oct 2002 22:38:36 -0500 [thread overview]
Message-ID: <87vg3w5umb.fsf@gentoo.shacknet.nu> (raw)
In-Reply-To: <87lm4t9jmq.fsf@foobar.toppoint.de>
David Spreen <netzwurm@debian.org> writes:
> Hey there,
> I sent a piece of emacs-code to Grant Goodyear to do in emacs
> what you suggested for the .vimrc. I sent it to Grant because
> I didn't see the note about this address at the end of the
> page.
>
> Okay, to switch to 4-spaces tab mode (even in shellscript-mode)
> of emacs add the following lines to your .emacs:
>
> --BEGIN
> ;; gentoo check
> (defun gentoo-check ()
> (if (string-match "gentoo-x86\\|gentoo-src\\|portage"
> (file-name-directory (buffer-file-name)))
> (progn (set 'tab-width 4)
> (set 'indent-tabs-mode 1)
> (set (make-local-variable
> 'backward-delete-char-untabify-method) nil))))
>
> (add-hook 'find-file-hooks 'gentoo-check)
> --END
I've been sourcing the following from my .emacs. It is basically what
you have and makes use of the shell-script mode (for that lovable
font-locking goodness). As time permits, I'll add keywords for
everything portage related (dobin, dodoc, inherit etc.). May even
consider adding it to the emacs/xemacs ebuilds somehow (or at least
app-emacs/).
,----[ ebuild.el ]
|
| (defun ebuild-mode ()
| "Simple ebuild-mode"
| (shell-script-mode)
| (sh-set-shell "bash")
| (set-variable '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))
|
`----
--
Matthew Kennedy
Gentoo Linux Developer
next prev parent reply other threads:[~2002-10-21 3:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-20 16:10 [gentoo-dev] Deveopers HOWTO David Spreen
2002-10-21 3:38 ` Matthew Kennedy [this message]
2002-10-22 5:59 ` Eric Stockbridge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vg3w5umb.fsf@gentoo.shacknet.nu \
--to=mkennedy@gentoo.org \
--cc=gentoo-dev@gentoo.org \
--cc=netzwurm@debian.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox