This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: inserting some Emacs-specific stuff into the source files
"Greg J. Badros" <gjb@cs.washington.edu> writes:
> Maciej Stachowiak <mjs@eazel.com> writes:
>
> > Michael Livshin <mlivshin@bigfoot.com> writes:
> >
> > > /*
> > > Local Variables:
> > > eval: (and (fboundp 'c-set-style) (c-set-style "gnu"))
> > > End:
> > > */
> > >
> > > does anyone have a problem with this? or any better idea?
> >
> > I approve. I have the same problem.
>
> Wait wait wait! eval blocks are very very inconvenient when sharing
> files because you'd be insane to have `enable-local-eval' set to
> t... it's a virus waiting to happen. And always being asked about
> evalling the block is unnecessarily tedious. Let's extend [X]Emacs with
> a variable that gets used to set the style after a file is loading so it
> does not need to be an eval block at the end of the file.
In another project I work on we put something like this at the top of
the file, is it possible to do something similar to get GNU style?
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
Speaking as an Emacs mostly-ignoramus,
Maciej