Browse Source

Add diff-mode config

master
10sr 5 years ago
parent
commit
f36dcaecbf
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      emacs.el

+ 6
- 1
emacs.el View File

@@ -976,7 +976,12 @@ found, otherwise returns nil."
(add-hook 'editorconfig-hack-properties-functions (add-hook 'editorconfig-hack-properties-functions
'(lambda (props) '(lambda (props)
(when (derived-mode-p 'makefile-mode) (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) (when (fboundp 'editorconfig-auto-apply-enable)
(add-hook 'editorconfig-conf-mode-hook (add-hook 'editorconfig-conf-mode-hook


Loading…
Cancel
Save