Permalink
Browse files

automatically delete trailing white space on save in curl-mode

  • Loading branch information...
bagder committed May 17, 2004
1 parent de27909 commit c090fdbdf1027139d19fd5c2678ee380690f33fc
Showing with 2 additions and 0 deletions.
  1. +2 −0 curl-style.el
View
@@ -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

0 comments on commit c090fdb

Please sign in to comment.