[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Duplicity-tracker] [patch #6675] Add modelines

From: Michael Terry
Subject: [Duplicity-tracker] [patch #6675] Add modelines
Date: Sun, 16 Nov 2008 17:16:54 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/2008101315 Ubuntu/8.10 (intrepid) Firefox/3.0.3


                 Summary: Add modelines
                 Project: duplicity
            Submitted by: mikix
            Submitted on: Sun 16 Nov 2008 12:16:52 PM EST
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any



An emacs modeline is a line that sets some common text editing settings
per-file.  They are recognized by many text editors and are useful when you
edit files from different projects, each with their own standards for tab
widths, etc.  It should be on the first or second line.

For example:
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-

That line tells the editor that it's looking at Python code, to use spaces
not tabs, and to use four spaces per tab.  This overrides the editor's default

I've attached a patch that adds modelines to all python files in duplicity.


File Attachments:

Date: Sun 16 Nov 2008 12:16:52 PM EST  Name: mode.diff  Size: 30kB   By:



Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]