Deleting tabs is fine, except...

For bloody Makefiles!
This commit is contained in:
Howard Abrams 2022-08-09 09:58:22 -07:00
parent 30d151bd1f
commit 45c1686fa1

View file

@ -227,7 +227,8 @@ When I push changes to my files to Gerrit and other code review, I dont want
"Cleanup a file, often done before a file save." "Cleanup a file, often done before a file save."
(interactive) (interactive)
(ignore-errors (ignore-errors
(untabify (point-min) (point-max)) (unless (equal major-mode 'makefile-bsdmake-mode)
(untabify (point-min) (point-max)))
(delete-trailing-whitespace))) (delete-trailing-whitespace)))
(add-hook 'before-save-hook #'ha-cleanup-buffer-file) (add-hook 'before-save-hook #'ha-cleanup-buffer-file)