Variable: dtrt-indent-max-offset

dtrt-indent-max-offset is a customizable variable defined in dtrt-indent.el.

Value

8

Documentation

*Maximum indentation offset that can be guessed.

You usually don't want to tinker with this - setting it to a lower value than 8 means that the (unfortunately) rather common indentation offset of 8 will no longer be guessed. Setting it to a higher value than 8 should not be harmful, but source files using more than 8 spaces per indentation level are very rare.

Source Code

;; Defined in /nix/store/xl774j723v677bsfsybzln3vi6w0fpm3-emacs-packages-deps/share/emacs/site-lisp/elpa/dtrt-indent-20260709.2011/dtrt-indent.el
(defcustom dtrt-indent-max-offset 8
  "*Maximum indentation offset that can be guessed.

You usually don't want to tinker with this - setting it to a
lower value than 8 means that the (unfortunately) rather common
indentation offset of 8 will no longer be guessed.  Setting it to
a higher value than 8 should not be harmful, but source files
using more than 8 spaces per indentation level are very rare."
  :type 'integer
  :tag "Maximum Guessed Indentation Offset"
  :group 'dtrt-indent)