xref: /freebsd/contrib/ntp/dot.emacs (revision fcb560670601b2a4d87bb31d7531c8dcc37ee71b)
1;; This is how Dave Mills likes to see the code formatted.
2
3(defconst ntp-c-style
4  '((c-basic-offset . 8)
5    (c-offsets-alist . ((arglist-intro	      . +)
6			(case-label	      . *)
7			(statement-case-intro . *)
8			(statement-cont	      . *)
9			(substatement-open    . 0))))
10  "Dave L. Mills; programming style for use with ntp")
11
12(defun ntp-c-mode-common-hook ()
13  ;; add ntp c style
14  (c-add-style "ntp" ntp-c-style nil))
15
16(add-hook 'c-mode-common-hook 'ntp-c-mode-common-hook)
17
18;; 1997112600
19