~ubuntu-branches/ubuntu/trusty/anjuta/trusty

« back to all changes in this revision

Viewing changes to manuals/anjuta-manual/fr/language-support-cpp-modelines-emacs.page

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-03-06 01:11:30 UTC
  • mfrom: (1.1.44)
  • Revision ID: package-import@ubuntu.com-20120306011130-yumg9s1nprogue2a
Tags: 2:3.3.91-0ubuntu1
* New upstream release.
* debian/control.in:
  - Bump minimum glade to 3.11 and vala to 0.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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="fr">
 
3
 
 
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"/>
 
8
    <desc>
 
9
      Supported Emacs modelines features.
 
10
    </desc>
 
11
    <credit type="author">
 
12
      <name>Sébastien Granjoux</name>
 
13
      <email>seb.sfo@free.fr</email>
 
14
    </credit>
 
15
  </info>
 
16
 
 
17
  <title>Emacs modelines</title>
 
18
 
 
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>
 
22
 
 
23
  <p>A typical <app>Emacs</app> modeline looks like this:</p>
 
24
  
 
25
  <code>
 
26
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
 
27
  </code>
 
28
 
 
29
  <p>Anjuta support only the following variables.</p>
 
30
 
 
31
  <terms>
 
32
    <item>
 
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>
 
36
    </item>
 
37
    <item>
 
38
      <title><code>tab-width</code></title>
 
39
      <p>Number of space characters corresponding to one tabulation character.</p>
 
40
    </item>
 
41
    <item>
 
42
      <title><code>c-basic-offset</code></title>
 
43
      <p>Number of space characters used to indent C code.</p>
 
44
    </item>
 
45
  </terms>
 
46
 
 
47
</page>