Created
November 15, 2010 16:02
-
-
Save rdsr/700507 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun my-save-buffer (&optional args) | |
"removing trailing whitespaces and tabs while saving buffer" | |
(interactive "p") | |
(untabify (point-min) (point-max)) | |
(whitespace-cleanup) | |
(save-buffer args)) | |
(global-set-key "\C-x\C-s" 'my-save-buffer) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment