summaryrefslogtreecommitdiff
path: root/curl-style.el
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-17 06:54:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-17 06:54:20 +0000
commitc090fdbdf1027139d19fd5c2678ee380690f33fc (patch)
tree827d64d5f2943e8d426866c1b6ab1e17ffe6714a /curl-style.el
parentde279099e5240115271274b2520cb1fc299f8ec5 (diff)
downloadcurl-c090fdbdf1027139d19fd5c2678ee380690f33fc.tar.gz
automatically delete trailing white space on save in curl-mode
Diffstat (limited to 'curl-style.el')
-rw-r--r--curl-style.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/curl-style.el b/curl-style.el
index b96ce5f56..7a6dfc357 100644
--- a/curl-style.el
+++ b/curl-style.el
@@ -34,6 +34,8 @@
;; c-mode-base-map because of inheritance ...
(define-key c-mode-base-map "\M-q" 'c-fill-paragraph)
(setq c-recognize-knr-p nil)
+ (add-hook 'write-file-hooks 'delete-trailing-whitespace)
+ (setq show-trailing-whitespace t)
)
;; Set this is in your .emacs if you want to use the c-mode-hook as