Subject: Re: Emacs cc-mode & KNF
To: None <mike.long@analog.com>
From: Gordon W. Ross <gwr@mc.com>
List: current-users
Date: 04/24/1996 14:16:35
Here is what I use in my .emacs file: (almost KNF)
;; BSD-style C indentation uses c-indent-level = tab-width = 4
(setq c-indent-level 4)
(progn
(setq c-argdecl-indent c-indent-level)
(setq c-continued-statement-offset c-indent-level)
(setq c-continued-brace-offset (- c-indent-level))
(setq c-label-offset (- c-indent-level))
)
(setq c-brace-offset 0)
;; This makes moving around faster, and causes indents to use tabs.
(setq c-mode-hook '(lambda () (setq tab-width c-indent-level)))