FG

How can I disable smart indentation in emacs (and force either spaces or tabs)?

Fresh3 days ago
Mar 15, 20267215 views
Confidence Score0%
0%

Problem

I want to make emacs insert either 4 spaces or a tab when I press the tab key. Nothing else. I don't want smart indentation, I don't want it to auto-align itself or try to do anything smart. I just want it to output 4 spaces (or a tab). =

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I disable smart indentation in emacs (and force either spaces or tabs)?

Low Risk

Try this. Find your .emacs and add this: this make your emacs inserts 2 spaces, you can change the number and put 4, if you want spaces NO tabs

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment