mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-27 14:23:43 -05:00
Fix #5057: don't read editorconfig files in archives
This commit is contained in:
@@ -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."
|
||||||
|
Reference in New Issue
Block a user