123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- (defconst curl-c-style
- '((c-basic-offset . 2)
- (c-comment-only-line-offset . 0)
- (c-hanging-braces-alist . ((substatement-open before after)))
- (c-offsets-alist . ((topmost-intro . 0)
- (topmost-intro-cont . 0)
- (substatement . +)
- (substatement-open . 0)
- (statement-case-intro . +)
- (statement-case-open . 0)
- (case-label . 0)
- ))
- )
- "Curl C Programming Style")
- (defun curl-c-mode-common-hook ()
- "Curl C mode hook"
-
- (c-add-style "curl" curl-c-style t)
- (setq tab-width 8
- indent-tabs-mode nil
- comment-column 40
- c-font-lock-extra-types (append '("bool" "CURL" "CURLcode" "ssize_t" "size_t" "socklen_t" "fd_set" "time_t" "curl_off_t" "curl_socket_t"))
- )
-
-
- (define-key c-mode-base-map "\M-q" 'c-fill-paragraph)
- (setq c-recognize-knr-p nil)
- )
|