From: Daniel Stenberg Date: Mon, 17 May 2004 06:54:20 +0000 (+0000) Subject: automatically delete trailing white space on save in curl-mode X-Git-Tag: curl-7_12_0~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c090fdbdf1027139d19fd5c2678ee380690f33fc;p=thirdparty%2Fcurl.git automatically delete trailing white space on save in curl-mode --- diff --git a/curl-style.el b/curl-style.el index b96ce5f566..7a6dfc3579 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