File: dot.emacs

package info (click to toggle)
ntp 1%3A4.2.8p12%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 32,472 kB
  • sloc: ansic: 240,078; sh: 6,859; makefile: 3,369; perl: 2,765; python: 1,486; yacc: 1,451; ruby: 817; awk: 417; sed: 47; asm: 37
file content (19 lines) | stat: -rw-r--r-- 521 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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