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 ago) by misho
Branches: ntp, MAIN
CVS tags: v4_2_6p5p0, v4_2_6p5, HEAD
ntp 4.2.6p5

    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: 

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