Nick Holland wrote:
> Use vi or emacs. :)

Additionally for emacs users: You can define how c code should be
indented for the openbsd project with this code in your .emacs.


(defun KNF-c-style ()
  "OpenBSD KNF C-style."
  (interactive)
  (local-set-key "\C-c\C-c" 'compile)
  (c-set-style "bsd")
  (setq fill-column 80)
  (setq c-basic-offset 8)
  (c-set-offset 'arglist-cont '*)
  (c-set-offset 'arglist-cont-nonempty '*)
  (c-set-offset 'statement-cont '4) )
(add-hook 'c-mode-common-hook 'KNF-c-style)



# Han

Reply via email to