summaryrefslogtreecommitdiff
path: root/curl-style.el
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-10-06 07:50:18 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-10-06 07:50:18 +0000
commit39af394a1c3ae1d8ac71ad263a7c524988702c2e (patch)
tree4ba44670440d52ff6c3b07fdef35ae3384f3dc5a /curl-style.el
parent5c7dcc6c33bb9e9621cf09ada4a15f310cf1c0e0 (diff)
downloadcurl-39af394a1c3ae1d8ac71ad263a7c524988702c2e.tar.gz
removed tabs and trailing whitespace from source
Diffstat (limited to 'curl-style.el')
-rw-r--r--curl-style.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/curl-style.el b/curl-style.el
index 0069bbc69..25bcd1a37 100644
--- a/curl-style.el
+++ b/curl-style.el
@@ -20,6 +20,13 @@
)
"Curl C Programming Style")
+(defun curl-code-cleanup ()
+ "no docs"
+ (interactive)
+ (untabify (point-min) (point-max))
+ (delete-trailing-whitespace)
+)
+
;; Customizations for all of c-mode, c++-mode, and objc-mode
(defun curl-c-mode-common-hook ()
"Curl C mode hook"
@@ -33,7 +40,7 @@
;; keybindings for C, C++, and Objective-C. We can put these in
;; c-mode-base-map because of inheritance ...
(define-key c-mode-base-map "\M-q" 'c-fill-paragraph)
- (define-key c-mode-base-map "\M-m" 'delete-trailing-whitespace)
+ (define-key c-mode-base-map "\M-m" 'curl-code-cleanup)
(setq c-recognize-knr-p nil)
;;; (add-hook 'write-file-hooks 'delete-trailing-whitespace t)
(setq show-trailing-whitespace t)