Fix a Makefile mode bug

Since I remove tabs by default ... except in Makefiles, I need to
covert all modes.
This commit is contained in:
Howard Abrams 2022-12-12 16:54:19 -08:00
parent 971965c9be
commit 6678d835cc

View file

@ -172,7 +172,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."
(interactive)
(ignore-errors
(unless (equal major-mode 'makefile-bsdmake-mode)
(unless (or (equal major-mode 'makefile-mode)
(equal major-mode 'makefile-bsdmake-mode))
(untabify (point-min) (point-max)))
(delete-trailing-whitespace)))