1
<?xml version="1.0" encoding="utf-8"?>
2
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="language-support-cpp-modelines-emacs" xml:lang="eu">
4
<info xmlns:facet="http://projectmallard.org/facet/1.0/">
5
<facet:tag key="all-pages" value="whatever"/> <!--Include page in index-->
6
<link type="guide" xref="anjuta-code-indentation#editor-modelines"/>
7
<revision pkgversion="3.0" version="0.1" date="2011-03-27" status="incomplete"/>
9
Supported Emacs modelines features.
11
<credit type="author">
12
<name>Sébastien Granjoux</name>
13
<email>seb.sfo@free.fr</email>
17
<title>Emacs modelines</title>
19
<p>Such modeline is a comment in the first line of the file, composed by
20
a list of variable names followed by <code>:</code> and a value,
21
separated by <code>;</code> and surrounded by <code>-*-</code>.</p>
23
<p>A typical <app>Emacs</app> modeline looks like this:</p>
26
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
29
<p>Anjuta support only the following variables.</p>
33
<title><code>indent-tabs-mode</code></title>
34
<p>Set to <code>t</code> to use tabulation for indentation or
35
<code>nil</code> to use spaces.</p>
38
<title><code>tab-width</code></title>
39
<p>Number of space characters corresponding to one tabulation character.</p>
42
<title><code>c-basic-offset</code></title>
43
<p>Number of space characters used to indent C code.</p>