From f36dcaecbffead5ba82baf4a05667098b5024db1 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Fri, 1 Nov 2019 20:10:15 +0900 Subject: [PATCH] Add diff-mode config --- emacs.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index b7a2a0c..a3b5f77 100644 --- a/emacs.el +++ b/emacs.el @@ -976,7 +976,12 @@ found, otherwise returns nil." (add-hook 'editorconfig-hack-properties-functions '(lambda (props) (when (derived-mode-p 'makefile-mode) - (puthash 'indent_style "tab" props)))) + (puthash 'indent_style "tab" props)) + (when (derived-mode-p 'diff-mode) + (puthash 'trim_trailing_whitespace "false" props) + (puthash 'insert_final_newline "false" props) + ) + )) (when (fboundp 'editorconfig-auto-apply-enable) (add-hook 'editorconfig-conf-mode-hook