From 2cf9b48b3d89f8756e00db8cfe587122250572c8 Mon Sep 17 00:00:00 2001 From: Daniel Weschke Date: Sun, 24 Jan 2021 22:19:34 +0100 Subject: [PATCH] add so-long config to handle files with very long lines --- settings/general-settings.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/settings/general-settings.el b/settings/general-settings.el index c398bba6..04a7f8f6 100644 --- a/settings/general-settings.el +++ b/settings/general-settings.el @@ -188,6 +188,13 @@ with a drive letter and a colon.") ;; truncate lines even in partial-width windows ;;(setq truncate-partial-width-windows t) +(use-package so-long + :config + ;;(add-to-list 'so-long-target-modes 'mhtml-mode t) + (setq so-long-max-lines nil) ;; by default only 5 non-blank lines are tested + (setq so-long-action 'so-long-minor-mode) ;; so-long-mode + (global-so-long-mode 1)) + ;; display line numbers to the right of the window ;; (global-linum-mode t) ;; deactivated because the DocView showing pdf files becomes extremly slow when global-linum-mode is on.