summaryrefslogtreecommitdiff
path: root/dot.emacs
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2014-12-02 09:01:21 +0000
committer <>2014-12-04 16:11:25 +0000
commitbdab5265fcbf3f472545073a23f8999749a9f2b9 (patch)
treec6018dd03dea906f8f1fb5f105f05b71a7dc250a /dot.emacs
downloadntp-bdab5265fcbf3f472545073a23f8999749a9f2b9.tar.gz
Imported from /home/lorry/working-area/delta_ntp/ntp-dev-4.2.7p482.tar.gz.ntp-dev-4.2.7p482
Diffstat (limited to 'dot.emacs')
-rw-r--r--dot.emacs19
1 files changed, 19 insertions, 0 deletions
diff --git a/dot.emacs b/dot.emacs
new file mode 100644
index 0000000..941ecbe
--- /dev/null
+++ b/dot.emacs
@@ -0,0 +1,19 @@
+;; 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