Fork me on GitHub
#emacs
<
2020-09-13
>
zackteo07:09:04

What's the emacs package/config that prevents Tab from inserting a Tab and instead does only autoindenting

sogaiu08:09:55

i don't know about that, but i have this in my ~/.emacs.d/init.el:

(setq-default indent-tabs-mode nil)
does that seem close to what you want?

sogaiu08:09:02

> Indentation can insert tabs if this is non-nil.

zackteo12:09:17

It kinda works. Doesn't work for elisp tho. Not maybe I'm remembering a behaviour that didn't exist in my config hmmmm

sogaiu13:09:27

interesting...when i do emacs -q and edit an emacs lisp file, pressing tab doesn't lead to any tabs being inserted afaict.

sogaiu13:09:48

ah no that's wrong.

sogaiu13:09:35

but the indent-tabs-mode setting does seem to work (that is, during an emacs -q session)

sogaiu13:09:23

(fwiw, this is with emacs 27.1)