On 01/04/2013 01:01 PM, Mike Hommey wrote:
On Sat, Jan 05, 2013 at 07:49:22AM +1100, Nicholas Nethercote wrote:
On Fri, Jan 4, 2013 at 12:23 PM, Nicholas Nethercote
<n.netherc...@gmail.com> wrote:
But putting sts in would be
reasonable for those that don't have |smarttab| set.
So it sounds like the recommended mode lines should look like this:

   /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil;
c-basic-offset: 2 -*- */
   /* vim: set ts=8 sts=2 et sw=2 tw=80: */

Any objections if I modify the style guide and start using these?
It's sad that it almost doubles the size of the boilerplate at the
beginning of files.

That being said, in 2013, I'm not convinced limiting to 80 characters on
one line still has much meaning...

Mike

FWIW, I agree on both points. I find editor-specific modelines extraneous, since you can always modify emacs/vim to do what you want anyway. I also find 80 characters / line fairly silly (the value of "fairly" depending on the language).

Jeff
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to