commit 21efa79678bb0fa7a69c89a5c24f437e17f96002 parent 5f3d403fcfa06fa90780a53d3eae9a4c18980e2b Author: Vincent Demeester <vincent@sbr.pm> Date: Fri, 2 Oct 2020 17:25:12 +0200 tools/emacs: fix long line performance issues Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | tools/emacs/config/config-editing.el | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/tools/emacs/config/config-editing.el b/tools/emacs/config/config-editing.el @@ -14,6 +14,16 @@ (add-to-list 'find-file-not-found-functions #'with-buffer-name-prompt-and-make-subdirs) +;; Fix long line "problems" +;; Disable some right-to-left behavior that might not be needed. +;; Learning arabic might make me change this, but for now.. +(setq-default bidi-paragraph-direction 'left-to-right) +(if (version<= "27.1" emacs-version) + (setq bidi-inhibit-bpa t)) +;; Detect if the line in a buffer are so long they could have a performance impact +(if (version<= "27.1" emacs-version) + (global-so-long-mode 1)) + ;; UseSmartParens (use-package smartparens :unless noninteractive