summaryrefslogtreecommitdiff
path: root/curl-style.el
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-24 22:24:03 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-24 22:24:03 +0000
commit0e60a118d060647fd661422fb4237f715b8451fc (patch)
tree9715f7db3d66985018557d3b3b9f6ecbc2edfa01 /curl-style.el
parent4b78b4124eee95c42f05e9c3df9ca798a0318db9 (diff)
downloadcurl-0e60a118d060647fd661422fb4237f715b8451fc.tar.gz
better comments, added some more variable types we use in the font-lock
Diffstat (limited to 'curl-style.el')
-rw-r--r--curl-style.el15
1 files changed, 3 insertions, 12 deletions
diff --git a/curl-style.el b/curl-style.el
index ffa4a0ada..b96ce5f56 100644
--- a/curl-style.el
+++ b/curl-style.el
@@ -2,17 +2,8 @@
;;;; $Id$
;;; The curl hacker's C conventions.
-
-;;; After loading this file and added the mode-hook you can in C
-;;; files, put something like this to use the curl style
-;;; automatically:
-;;
-;; /* -----------------------------------------------------------------
-;; * local variables:
-;; * eval: (set c-file-style "curl")
-;; * end:
-;; */
-;;
+;;; See the sample.emacs file on how this file can be made to take
+;;; effect automatically when editing curl source files.
(defconst curl-c-style
'((c-basic-offset . 2)
@@ -37,7 +28,7 @@
(setq tab-width 8
indent-tabs-mode nil ; Use spaces. Not tabs.
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"))
+ 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" "in_addr_t" "CURLSHcode" "CURLMcode"))
)
;; keybindings for C, C++, and Objective-C. We can put these in
;; c-mode-base-map because of inheritance ...