On Sat, Apr 23, 2011 at 23:07:10 (CEST), Andrea Crotti wrote: > Hi everyone, I met some of you at the Fosdem, so well since I like to > customize emacs a lot to make my life easier I tried to set some > dir-local-variables > for emacs. > Here is a patch, with these settings it will enabel flyspell-prog-mode, which > checks > for english errors in comments and string for every mode, and a suitable > indentation-style > and a compile-command. > > Hope it's useful for anyone, and I'm sure that much more can be done... > PS. the first git patch that I send from emacs, so please let me know if it's > not > formatted as it should be. > > .dir-locals.el | 8 ++++++++ > 1 files changed, 8 insertions(+), 0 deletions(-) > create mode 100644 .dir-locals.el > > --- > diff --git a/.dir-locals.el b/.dir-locals.el > new file mode 100644 > index 0000000..4669bec > --- /dev/null > +++ b/.dir-locals.el > @@ -0,0 +1,8 @@ > +;;; Directory Local Variables > +;;; See Info node `(emacs) Directory Variables' for more information. > + > +((nil . > + ((eval . (flyspell-prog-mode))))
Does this enable flyspell mode unconditionally? > + (c-mode . > + ((compile-command . "make -j") > + (c-indentation-style . "k&r")))) make -j seems too hard to me. I'd rather set something based on the current number of online CPUs or rather, not set it at all. anyway, it seems an interesting source of inspiration, so I wouldn't mind taking this file as is as template in doc/contrib or something. -- Gruesse/greetings, Reinhard Tartler, KeyID 945348A4 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
