summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/dot.emacs
diff options
context:
space:
mode:
authorroberto <roberto@FreeBSD.org>1999-12-09 13:01:21 +0000
committerroberto <roberto@FreeBSD.org>1999-12-09 13:01:21 +0000
commitef64b99e8412f2273dd2e8b3291c2f78ffc4667f (patch)
treefc0cfa1aab0ff6b228f511b410733ef4f35d1ead /contrib/ntp/dot.emacs
downloadFreeBSD-src-ef64b99e8412f2273dd2e8b3291c2f78ffc4667f.zip
FreeBSD-src-ef64b99e8412f2273dd2e8b3291c2f78ffc4667f.tar.gz
Virgin import of ntpd 4.0.98f
Diffstat (limited to 'contrib/ntp/dot.emacs')
-rw-r--r--contrib/ntp/dot.emacs18
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
OpenPOWER on IntegriCloud