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.