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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -