Variable: so-long-target-modes

so-long-target-modes is a customizable variable defined in so-long.el.gz.

Value

(prog-mode css-mode sgml-mode nxml-mode fundamental-mode)

Documentation

global-so-long-mode(var)/global-so-long-mode(fun) affects only these modes and their derivatives.

Our primary use-case is minified programming code, so prog-mode covers most cases, but there are some exceptions to this.

If t, then all modes are targeted. Note that this is only useful with a custom so-long-predicate, as many file types (archives and binary files, for example) can safely contain long lines, and invoking so-long on such files would prevent Emacs from handling them correctly.

This variable was added, or its default value changed, in so-long version 1.1.

Probably introduced at or before Emacs version 28.1.

Source Code

;; Defined in /usr/src/emacs/lisp/so-long.el.gz
(defcustom so-long-target-modes
  '(prog-mode css-mode sgml-mode nxml-mode fundamental-mode)
  "`global-so-long-mode' affects only these modes and their derivatives.

Our primary use-case is minified programming code, so `prog-mode' covers
most cases, but there are some exceptions to this.

If t, then all modes are targeted.  Note that this is only useful with a
custom `so-long-predicate', as many file types (archives and binary files,
for example) can safely contain long lines, and invoking `so-long' on such
files would prevent Emacs from handling them correctly."
  ;; Use 'symbol', as 'function' may be unknown => mismatch.
  :type '(choice (repeat :tag "Specified modes" symbol)
                 (const :tag "All modes" t))
  :package-version '(so-long . "1.1"))