Deleting tabs is fine, except...
For bloody Makefiles!
This commit is contained in:
parent
30d151bd1f
commit
45c1686fa1
1 changed files with 2 additions and 1 deletions
|
@ -227,7 +227,8 @@ When I push changes to my files to Gerrit and other code review, I don’t want
|
|||
"Cleanup a file, often done before a file save."
|
||||
(interactive)
|
||||
(ignore-errors
|
||||
(untabify (point-min) (point-max))
|
||||
(unless (equal major-mode 'makefile-bsdmake-mode)
|
||||
(untabify (point-min) (point-max)))
|
||||
(delete-trailing-whitespace)))
|
||||
|
||||
(add-hook 'before-save-hook #'ha-cleanup-buffer-file)
|
||||
|
|
Loading…
Reference in a new issue