File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / dot.emacs
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:08:37 2012 UTC (12 years, 5 months ago) by misho
Branches: ntp, MAIN
CVS tags: v4_2_6p5p0, v4_2_6p5, HEAD
ntp 4.2.6p5

;; This is how Dave Mills likes to see the NTP code formatted.

(defconst ntp-c-style
  '((c-basic-offset  . 8)
    (fill-column     . 72)
    (c-offsets-alist . ((arglist-intro	      . +)
			(case-label	      . *)
			(statement-case-intro . *)
			(statement-cont	      . *)
			(substatement-open    . 0))))
  "David L. Mills; NTP code indentation style")

(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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>