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 (-13 / +4 lines)
Lines 1199-1219 Link Here
1199
</pre>
1199
</pre>
1200
1200
1201
<p>
1201
<p>
1202
If you're using Emacs, you can put the following snippet at the bottom of 
1202
If you're using Emacs, you should emerge app-emacs/gentoo-syntax
1203
.emacsrc file (for GNU Emacs) or init.el (for XEmacs) to make sure your using 
1203
(for GNU Emacs) or app-xemacs/gentoo-syntax (for XEmacs). These
1204
the correct settings when editing anything Gentoo-related.
1204
packages provide Emacs major modes for automatic indentation and
1205
syntax highlighting of ebuilds and other Gentoo specific file types.
1205
</p>
1206
</p>
1206
1207
1207
<pre caption="Configuring emacsrc for ebuild-editing">
1208
(defun ebuild-mode ()
1209
  (shell-script-mode)
1210
  (sh-set-shell "bash")
1211
  (make-local-variable 'tab-width)
1212
  (setq tab-width 4))
1213
(setq auto-mode-alist (cons '("\\.ebuild$" . ebuild-mode) auto-mode-alist))
1214
(setq auto-mode-alist (cons '("\\.eclass$" . ebuild-mode) auto-mode-alist))
1215
</pre>
1216
1217
<p>
1208
<p>
1218
If you're using nano, then you're in luck!  Just edit <path>/etc/nanorc</path> 
1209
If you're using nano, then you're in luck!  Just edit <path>/etc/nanorc</path> 
1219
and uncomment the section referring to ebuild's.
1210
and uncomment the section referring to ebuild's.

Return to bug 152687