Emacs: File Size Threshold

I use Emacs to open up WAR files often. Since these files are often large, Emacs usually pops up a confirmation dialog which was cramping my style. Turns out Emacs maintains a threshold of file size for this. The default value is about 10 MB. The variable “large-file-warning-threshold” is customizable. Note that you shouldn’t set the file size threshold to be larger than buffer size.

I set mine to 100 MB.

(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(blink-cursor-mode nil)
'(inhibit-startup-screen t)
'(large-file-warning-threshold 100000000)
'(tool-bar-mode nil))

Leave a Comment

Name (required)

Mail (will not be published) (required)

Website

Comment