doomemacs/modules/editor
Henrik Lissner c0662f6ea1
feat(lib): introduce set-indent-vars! & doom-indent API
Introduces a systemic fix to the problem where most major modes don't
set `tab-width` and/or `standard-indent` to match the mode-specific
indent variables. This tries to guess the indent variable(s) for any
given major mode, by searching for variables that end in:

  X-ts-mode-indent-offset
  X-indent-offset
  X-indent-level
  X-tab-width
  X-basic-offset

Where X is the major mode without the (base-)?(ts-)?-mode suffix. This
should resolve to the correctly variable for most popular or newer
packages. For modes where it isn't enough, modules will have to manually
register with `set-indent-vars!`.

This commit also moves various indent commands to a new
lisp/lib/indent.el library and rewrites `doom/set-indent-width` to use
this new API (which no longer depends on editorconfig, and less on
dtrt-indent).

Fix: #8713
2026-03-15 02:23:40 -04:00
..
evil feat(lib): introduce set-indent-vars! & doom-indent API 2026-03-15 02:23:40 -04:00
file-templates fix: appease byte-compiler across the board 2026-03-11 22:50:33 -04:00
fold refactor: s/when-let/when-let*/ 2026-03-09 03:28:06 -04:00
format refactor: s/set-debug-variable!/set-debug-var!/ 2026-03-13 17:42:00 -04:00
god bump: :term :input :editor :app :email 2025-09-02 16:16:03 +02:00
lispy docs: update doomemacs repo urls 2026-03-05 22:48:55 -05:00
multiple-cursors nit: revise TODO/FIXME/HACK/REVIEW/etc in comments 2026-03-02 19:45:09 -05:00
objed refactor(lib): deprecate pushnew! 2026-03-01 18:10:43 -05:00
parinfer bump: :editor 2026-01-06 02:00:18 -05:00
rotate-text refactor(lib): deprecate pushnew! 2026-03-01 18:10:43 -05:00
snippets refactor: s/set-debug-variable!/set-debug-var!/ 2026-03-13 17:42:00 -04:00
whitespace feat(lib): introduce set-indent-vars! & doom-indent API 2026-03-15 02:23:40 -04:00
word-wrap bump: :editor 2025-12-01 23:56:53 -05:00
.doommodule feat: add .doommodule files 2024-09-14 20:47:39 -04:00
README.org revert: fix(docs): set mode in file-local vars 2022-08-07 19:08:07 +02:00

:editor

Description

For modules concerned with the insertion and editing of text. Amen.

Frequently asked questions

This category has no FAQs yet. Ask one?