Switching quickly between different C styles in emacs -
what best way define multiple different c-styles in emacs , easily? have 1 project requires google c/c++ style while else uses bsd. have key combination allow me change between style provided by
https://google-styleguide.googlecode.com/svn/trunk/google-c-style.el
and standard "bsd" emacs style.
instead of key combination, suggest using directory-local variables. modified example documentation should work:
((c-mode . ((c-file-style . "bsd"))))
put file called .dir-locals.el
in root of project, , adjust value c-file-style
necessary.
Comments
Post a Comment