On Sat, Apr 23, 2011 at 11:07:10PM +0200, 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.
Great idea, I will start experimenting with this in a moment. > --- /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)))) > + (c-mode . > + ((compile-command . "make -j") > + (c-indentation-style . "k&r")))) I have the following in my .emacs: (setq c-default-style "k&r") (setq-default c-basic-offset 4) (setq-default indent-tabs-mode nil) I think 4 space indentation with no tabs should also be part of such a default emacs setup. Diego _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
