optimize performance of long-line files

This commit is contained in:
zedhugh committed 2023-10-25 04:28:21 +08:00
1 parent cd04da91f9
commit 83bef6ccca
1 file changed
+12
+12
View File
@@ -56,5 +56,17 @@
(add-to-list 'auto-mode-alist '("CMakeLists\\.txt\\'" . cmake-mode)) (add-to-list 'auto-mode-alist '("CMakeLists\\.txt\\'" . cmake-mode))
(add-to-list 'auto-mode-alist '("\\.cmake\\'" . cmake-mode)) (add-to-list 'auto-mode-alist '("\\.cmake\\'" . cmake-mode))
;; optimize performance of long-line files
(setq-default bidi-display-reordering t)
(setq bidi-inhibit-bpa t
long-line-threshold 200
large-hscroll-threshold 200
syntax-wholeline-max 200)
(with-eval-after-load 'so-long
(setq so-long-threshold 200))
(when (fboundp 'global-so-long-mode)
(global-so-long-mode 1))
(provide 'init-file) (provide 'init-file)