* [gentoo-dev] Deveopers HOWTO
@ 2002-10-20 16:10 David Spreen
2002-10-21 3:38 ` Matthew Kennedy
2002-10-22 5:59 ` Eric Stockbridge
0 siblings, 2 replies; 3+ messages in thread
From: David Spreen @ 2002-10-20 16:10 UTC (permalink / raw
To: gentoo-dev
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
Additionally I want to ask how to contribute to the Documentation
of gentoo. I am interested in translating the HOWTO into german.
I am also interested in contributing in other ways (maybe
check ebuild bugs and so on.
so long...
David
--
|David Spreen | Debian GNU Developer |
|Email: netzwurm@debian.org | http://www.debian.org/|
|------------------------------------------------------------------|
|1024D/C8B6823A: D72F 9DD2 808A CC90 6672 8459 95FC 446B C8B6 823A|
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] Deveopers HOWTO
2002-10-20 16:10 [gentoo-dev] Deveopers HOWTO David Spreen
@ 2002-10-21 3:38 ` Matthew Kennedy
2002-10-22 5:59 ` Eric Stockbridge
1 sibling, 0 replies; 3+ messages in thread
From: Matthew Kennedy @ 2002-10-21 3:38 UTC (permalink / raw
To: David Spreen; +Cc: gentoo-dev
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] Deveopers HOWTO
2002-10-20 16:10 [gentoo-dev] Deveopers HOWTO David Spreen
2002-10-21 3:38 ` Matthew Kennedy
@ 2002-10-22 5:59 ` Eric Stockbridge
1 sibling, 0 replies; 3+ messages in thread
From: Eric Stockbridge @ 2002-10-22 5:59 UTC (permalink / raw
To: David Spreen; +Cc: gentoo-dev
> Additionally I want to ask how to contribute to the Documentation
> of gentoo. I am interested in translating the HOWTO into german.
> I am also interested in contributing in other ways (maybe
> check ebuild bugs and so on.
>
> so long...
>
> David
mailing list: gentoo-doc@gentoo.org
irc : #gentoo-doc
we would be more than happy for the help
thanks in advance,
Eric Stockbridge
Gentoo Linux Documentation Team
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-10-22 5:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-20 16:10 [gentoo-dev] Deveopers HOWTO David Spreen
2002-10-21 3:38 ` Matthew Kennedy
2002-10-22 5:59 ` Eric Stockbridge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox