Skip to content

Commit

Permalink
Add explicit support for rpm-spec-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
10sr committed Jun 3, 2019
1 parent 1d83947 commit efc1ff4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion editorconfig.el
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,13 @@ To disable EditorConfig in some buffers, modify
;; See https://github.com/editorconfig/editorconfig-emacs/issues/141 for why
;; not `after-change-major-mode-hook'
(dolist (hook '(change-major-mode-after-body-hook
read-only-mode-hook))
read-only-mode-hook
;; Some modes call `kill-all-local-variables' in their init
;; code, which clears some values set by editorconfig.
;; For those modes, editorconfig-apply need to be called
;; explicitly through their hooks.
rpm-spec-mode-hook
))
(if editorconfig-mode
(add-hook hook 'editorconfig-mode-apply)
(remove-hook hook 'editorconfig-mode-apply))))
Expand Down

0 comments on commit efc1ff4

Please sign in to comment.