/contrib/ntp/dot.emacs

https://bitbucket.org/freebsd/freebsd-head/ · Unknown · 18 lines · 14 code · 4 blank · 0 comment · 0 complexity · fe93cdb6f26e4ba3a68dff12a209903e MD5 · raw file

  1. ;; This is how Dave Mills likes to see the code formatted.
  2. (defconst ntp-c-style
  3. '((c-basic-offset . 8)
  4. (c-offsets-alist . ((arglist-intro . +)
  5. (case-label . *)
  6. (statement-case-intro . *)
  7. (statement-cont . *)
  8. (substatement-open . 0))))
  9. "Dave L. Mills; programming style for use with ntp")
  10. (defun ntp-c-mode-common-hook ()
  11. ;; add ntp c style
  12. (c-add-style "ntp" ntp-c-style nil))
  13. (add-hook 'c-mode-common-hook 'ntp-c-mode-common-hook)
  14. ;; 1997112600