Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 152687 | Differences between
and this patch

Collapse All | Expand All

(-)hb-guide-ebuild.xml.old (-6 / +8 lines)
Lines 351-357 Link Here
351
</p>
351
</p>
352
352
353
<pre caption="Valid Header">
353
<pre caption="Valid Header">
354
# Copyright 1999-2005 Gentoo Foundation
354
# Copyright 1999-2006 Gentoo Foundation
355
# Distributed under the terms of the GNU General Public License v2
355
# Distributed under the terms of the GNU General Public License v2
356
# &#36;Header: &#36;
356
# &#36;Header: &#36;
357
</pre>
357
</pre>
Lines 1204-1221 Link Here
1204
1204
1205
<p>
1205
<p>
1206
If you're using Emacs, you can put the following snippet at the bottom of 
1206
If you're using Emacs, you can put the following snippet at the bottom of 
1207
.emacsrc file (for GNU Emacs) or init.el (for XEmacs) to make sure your using 
1207
.emacs file (for GNU Emacs) or init.el (for XEmacs) to make sure your using 
1208
the correct settings when editing anything Gentoo-related.
1208
the correct settings when editing anything Gentoo-related.
1209
</p>
1209
</p>
1210
1210
1211
<pre caption="Configuring emacsrc for ebuild-editing">
1211
<pre caption="Configuring .emacs for ebuild-editing">
1212
(defun ebuild-mode ()
1212
(defun ebuild-mode ()
1213
  (shell-script-mode)
1213
  (shell-script-mode)
1214
  (sh-set-shell "bash")
1214
  (sh-set-shell "bash")
1215
  (make-local-variable 'tab-width)
1215
  (make-local-variable 'tab-width)
1216
  (setq tab-width 4))
1216
  (setq tab-width 4)
1217
(setq auto-mode-alist (cons '("\\.ebuild$" . ebuild-mode) auto-mode-alist))
1217
  (make-local-variable 'indent-tabs-mode)
1218
(setq auto-mode-alist (cons '("\\.eclass$" . ebuild-mode) auto-mode-alist))
1218
  (setq indent-tabs-mode t))
1219
(add-to-list 'auto-mode-alist '("\\.ebuild$" . ebuild-mode))
1220
(add-to-list 'auto-mode-alist '("\\.eclass$" . ebuild-mode))
1219
</pre>
1221
</pre>
1220
1222
1221
<p>
1223
<p>

Return to bug 152687