about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-10-05 20:55:33 +0000
committerAlyssa Ross <hi@alyssa.is>2020-10-05 20:55:33 +0000
commit6a1d0737da8773bf241c1e07b12995c21fd525f1 (patch)
tree4fc709eb4f454f0ee6703b837795b1d3d87fda1f
parent13eb4eaed71bba3abd9901ddbf7bd5a0c31cb7f2 (diff)
downloadnixlib-6a1d0737da8773bf241c1e07b12995c21fd525f1.tar
nixlib-6a1d0737da8773bf241c1e07b12995c21fd525f1.tar.gz
nixlib-6a1d0737da8773bf241c1e07b12995c21fd525f1.tar.bz2
nixlib-6a1d0737da8773bf241c1e07b12995c21fd525f1.tar.lz
nixlib-6a1d0737da8773bf241c1e07b12995c21fd525f1.tar.xz
nixlib-6a1d0737da8773bf241c1e07b12995c21fd525f1.tar.zst
nixlib-6a1d0737da8773bf241c1e07b12995c21fd525f1.zip
modules/emacs: try to speed up long lines
Suggestions from
<https://200ok.ch/posts/2020-09-29_comprehensive_guide_on_handling_long_lines_in_emacs.html>.
-rw-r--r--modules/workstation/emacs/init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/workstation/emacs/init.el b/modules/workstation/emacs/init.el
index cf035131d860..dc7576807860 100644
--- a/modules/workstation/emacs/init.el
+++ b/modules/workstation/emacs/init.el
@@ -1,6 +1,7 @@
 ;;; UI customization ;;;
 (column-number-mode)
 (electric-pair-mode)
+(global-so-long-mode)
 (menu-bar-mode -1)
 (scroll-bar-mode -1)
 (show-paren-mode)
@@ -15,6 +16,11 @@
 ;; narrow, and beautiful.
 (set-face-attribute 'default nil :height 104)
 
+;; Disabling bidirectional text will make Emacs less slow with very
+;; long lines.
+(setq bidi-paragraph-direction 'left-to-right)
+(setq bidi-inhibit-bpa t)
+
 ;;; Major modes ;;;
 (add-to-list 'auto-mode-alist '("\\.adoc\\'" . adoc-mode))
 (add-to-list 'auto-mode-alist '("\\.quirks\\'" . conf-unix-mode))