//i want autoindentation be like this
main(void) {
  //main body
  if(true) {
  //if body

how can I achive this in cc-mode? I found that there is something like hanging-braces, but even when I try listend examples with my own c-style after i tried it, there is zero changes.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.