From 45c1686fa12226182878d7ecc2a0aee8e60504e3 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Tue, 9 Aug 2022 09:58:22 -0700 Subject: [PATCH] Deleting tabs is fine, except... For bloody Makefiles! --- ha-config.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ha-config.org b/ha-config.org index 755397e..9e25afe 100644 --- a/ha-config.org +++ b/ha-config.org @@ -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)