Fix #5057: don't read editorconfig files in archives
This commit is contained in:
parent
3b0f23792d
commit
5bed0a6d16
1 changed files with 6 additions and 0 deletions
|
@ -24,6 +24,12 @@
|
||||||
(when (require 'ws-butler nil t)
|
(when (require 'ws-butler nil t)
|
||||||
(setq editorconfig-trim-whitespaces-mode 'ws-butler-mode))
|
(setq editorconfig-trim-whitespaces-mode 'ws-butler-mode))
|
||||||
|
|
||||||
|
;; Fix #5057 archives don't need editorconfig settings, and they may otherwise
|
||||||
|
;; interfere with the process of opening them (office formats are zipped XML
|
||||||
|
;; formats).
|
||||||
|
(add-to-list 'editorconfig-exclude-regexps
|
||||||
|
"\\.\\(zip\\|\\(doc\\|xls\\|ppt\\)x\\)\\'")
|
||||||
|
|
||||||
(defadvice! +editorconfig--smart-detection-a (orig-fn)
|
(defadvice! +editorconfig--smart-detection-a (orig-fn)
|
||||||
"Retrieve the properties for the current file. If it doesn't have an
|
"Retrieve the properties for the current file. If it doesn't have an
|
||||||
extension, try to guess one."
|
extension, try to guess one."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue