add standard vi formatting directives to all source files?
Robert P. J. Day
rpjday at mindspring.com
Thu May 18 07:02:33 PDT 2006
On Thu, 18 May 2006, Bernhard Fischer wrote:
> On Thu, May 18, 2006 at 09:48:57AM -0400, Robert P. J. Day wrote:
> >
> > i notice that some, but not all, BB source files end with the
> >editing directives:
> >
> >
> >/*
> >Local Variables:
> >c-file-style: "linux"
> >c-basic-offset: 4
> >tab-width: 4
> >End:
> >*/
>
> AFAIK this is for emacs and not vi.
>
> For vi, i usually say this at the top of the file (end should work too,
> IIRC):
> /* vi: set sw=4 ts=4: */
>
> I think Rob has ripped out this emacs-block from some (or one)
> applet(s) recently. I do not know off-hand if emacs honours the vi
> notation.
hmmmm ... is it worth trying to make everything conform to one
standard or another? just to keep the editing experience consistent?
i have no problem with your one-line vi directive.
rday
More information about the busybox
mailing list