From 37f3a16c0eb9b1acfa53681ac2208fac2373a72d Mon Sep 17 00:00:00 2001 From: Mitch Tishmack Date: Sun, 4 Oct 2020 00:58:51 -0500 Subject: [PATCH] Add some speedups for long lines Remove bidirectional support that I don't use. --- emacs.org | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/emacs.org b/emacs.org index eed5533..0ccb3bb 100644 --- a/emacs.org +++ b/emacs.org @@ -273,6 +273,27 @@ computers. (set-default 'sentence-end-double-space nil) #+END_SRC +*** long line speedups + +Improve the performance of emacs with files that contain long lines. Disable +left to right and right to left in the same buffer support. Until or if I learn +a language that needs this I can deal with it then. + +#+BEGIN_SRC emacs-lisp +(setq-default bidi-paragraph-direction 'left-to-right) +#+END_SRC + +Also disable this algorithm, which may unbalance ()'s in bidirectional language +detection. But again as I don't use/speak/read them. Ok tradeoff. + +#+BEGIN_SRC emacs-lisp +(if (version<= "27.1" emacs-version) + ((setq bidi-inhibit-bpa t) + (global-so-long-mode 1))) +#+END_SRC + +Ref: https://200ok.ch/posts/2020-09-29_comprehensive_guide_on_handling_long_lines_in_emacs.html + *** sentence end Semi related to the above, make the sentence endings a bit more code-ish.