]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/dot.emacs
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ntp / dot.emacs
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