2013-12-04 21:33:17 +00:00
|
|
|
;; This is how Dave Mills likes to see the NTP code formatted.
|
1999-12-09 13:01:21 +00:00
|
|
|
|
|
|
|
(defconst ntp-c-style
|
2013-12-04 21:33:17 +00:00
|
|
|
'((c-basic-offset . 8)
|
|
|
|
(fill-column . 72)
|
1999-12-09 13:01:21 +00:00
|
|
|
(c-offsets-alist . ((arglist-intro . +)
|
|
|
|
(case-label . *)
|
|
|
|
(statement-case-intro . *)
|
|
|
|
(statement-cont . *)
|
|
|
|
(substatement-open . 0))))
|
2013-12-04 21:33:17 +00:00
|
|
|
"David L. Mills; NTP code indentation style")
|
1999-12-09 13:01:21 +00:00
|
|
|
|
|
|
|
(defun ntp-c-mode-common-hook ()
|
|
|
|
;; add ntp c style
|
|
|
|
(c-add-style "ntp" ntp-c-style nil))
|
|
|
|
|
|
|
|
(add-hook 'c-mode-common-hook 'ntp-c-mode-common-hook)
|
|
|
|
|
|
|
|
;; 1997112600
|