Explorar el Código

Add some speedups for long lines

Remove bidirectional support that I don't use.
master
Mitch Tishmack hace 6 años
padre
commit
37f3a16c0e
Se han modificado 1 ficheros con 21 adiciones y 0 borrados
  1. +21
    -0
      emacs.org

+ 21
- 0
emacs.org Ver fichero

@@ -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.


Cargando…
Cancelar
Guardar