Thursday, August 04, 2005

indentations

So, you can either get rid of GNU emacs, or change it to use saner
values. To do the latter, you can stick the following in your .emacs file:

(defun linux-c-mode ()
"C mode with adjusted defaults for use with the Linux kernel."
(interactive)
(c-mode)
(c-set-style "K&R")
(setq c-basic-offset 8))

use -kr and -i8 options with indent

(stands for "K&R, 8 character indents"). 

No comments: