cvs commit: src/tools/tools/editing freebsd.vim

Dag-Erling Smørgrav des at des.no
Thu Mar 27 11:29:31 PDT 2008


Rui Paulo <rpaulo at fnop.net> writes:
> I think this should be mentioned in the developer's handbook because,
> IIRC, the sample .emacs file in there is bogus and doesn't really
> respect style(9).

(defun des-knf ()
  (interactive)
  (c-set-style "bsd")

  ;; Basic indent is 8 spaces
  (setq c-basic-offset 8)
  (setq tab-width 8)

  ;; Continuation lines are indented 4 spaces
  (c-set-offset 'arglist-cont 4)
  (c-set-offset 'arglist-cont-nonempty 4)
  (c-set-offset 'statement-cont 4)
  (c-set-offset 'cpp-macro-cont 8)

  ;; Labels are flush to the left
  (c-set-offset 'label [0])

  ;; Fill column
  (setq fill-column 74))

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the cvs-all mailing list