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