c-mode is bundled with Emacs by default. No additional setup is required.
- Go to the beginning of the current function. If you are between 2 functions, go the start of the previous one.
- Go to the end of the current function. If you are between 2 functions, go to the end of the next one.
Change default indenting style
; set k&r style (setq c-set-style "k&r") ; indent with 4 spaces (setq c-basic-offset 4)