Files
emacs.d/init.el
Rahul Martim Juliato ae874711be fix(emacs): set indent-tabs-mode globally via :custom
Previously we used `(indent-tabs-mode -1)` in `:init`, but this only
toggles the minor mode for the *current buffer* (the init buffer at
startup). This was confusing, since `indent-tabs-mode` serves two
purposes:

- as a **buffer-local minor mode toggle** (function)

- and as a **global default variable** for new buffers

Because of this dual nature, the old code disabled tabs only for the
init buffer, while all new buffers kept the default (`t`).

We now explicitly set `(indent-tabs-mode nil)` in the `:custom` block,
making this assumption **global**: every new buffer defaults to using
spaces instead of tabs.
2025-10-06 20:01:59 -03:00

63 KiB