diff options
Diffstat (limited to 'contrib/ntp/dot.emacs')
-rw-r--r-- | contrib/ntp/dot.emacs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/ntp/dot.emacs b/contrib/ntp/dot.emacs new file mode 100644 index 0000000..04241e7 --- /dev/null +++ b/contrib/ntp/dot.emacs @@ -0,0 +1,18 @@ +;; This is how Dave Mills likes to see the code formatted. + +(defconst ntp-c-style + '((c-basic-offset . 8) + (c-offsets-alist . ((arglist-intro . +) + (case-label . *) + (statement-case-intro . *) + (statement-cont . *) + (substatement-open . 0)))) + "Dave L. Mills; programming style for use with ntp") + +(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 |