Change format of doom-large-file-size-alist
Instead of mapping major modes to file size thresholds, it maps file regexps (like auto-mode-alist) since the major mode cannot be known before set-auto-mode is called (in after-find-file).
This commit is contained in:
parent
436d36fcd2
commit
44fcbb52dc
2 changed files with 5 additions and 6 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
;; Large clojure buffers tend to be slower than large buffers of other modes, so
|
||||
;; it should have a lower threshold too.
|
||||
(add-to-list 'doom-large-file-size-alist '(clojure-mode . 0.5))
|
||||
(add-to-list 'doom-large-file-size-alist '("\\.\\(?:clj[sc]?\\|dtm\\|edn\\)\\'" . 0.5))
|
||||
|
||||
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue