;; added by Charles Sugnet 04 04 2001 to use Jim Kent's formating ;; To load: (load "~/jkent-c.emacs") (setq jkent-c-style '((c-basic-offset . 4) (c-comment-only-line-offset . 0) (c-offsets-alist . ((defun-open . 0) (defun-block-intro . -1000) (statement-block-intro . 0) (knr-argdecl-intro . 0) (substatement-open . +) (label . 0) (statement-case-open . +) (statement-cont . +) (arglist-intro . c-lineup-arglist-intro-after-paren) (arglist-close . c-lineup-arglist) (inline-open . 0) )) (c-label-minimum-indentation . 0) (c-comment-continuation-stars . "") (c-hanging-comment-ender-p . t) )) ;; This adds the jkent-c to our possible c-styles ;; use M-x c-set-style jkent-c to set (c-add-style "jkent-c" jkent-c-style) ;; This autmatically loads the jkent-c style for all .c .h files (add-hook 'c-mode-hook (function (lambda () (c-set-style "jkent-c"))))