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:
parent
971965c9be
commit
6678d835cc
1 changed files with 2 additions and 1 deletions
|
@ -172,7 +172,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
|
||||
(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)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue