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:
> 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.
I agree. Doing eval should be avoided if at all possible.
However, cc-mode has enough non-eval hooks you don't need it.
For example, a project I worked on, where most of the people
did not use Emacs but some did, added this to the end of each
Java file:
// This is for people using the Emacs editor:
// Local Variables:
// c-file-style: "java"
// c-file-offsets: ((substatement-open . 0))
// tab-width: 4
// indent-tabs-mode: t
// End:
Without having tried it, my guess is the effect of what you
want can be *safely* achieved by:
/*
Local Variables:
c-file-style: "gnu"
End:
*/
--
--Per Bothner
per@bothner.com http://www.bothner.com/~per/