Tell Emacs Never Insert Tabs

I know how I can do this so that the hit does not insert a tab, but spaces.

However, Emacs continues to use tabs for indentation, for example:

space space space space space tab tab space space tab tab tab space space space 

This is a messy mix, how can I set it up so that it never inserts tabs for anything?

+6
source share
2 answers

Add this to your .emacs :

 (setq-default indent-tabs-mode nil) 
+15
source

Check the indent-tabs-mode variable. If you set it to nil , emacs will use spaces to indent tab-stop when you press tab and never convert spaces to tabs.

+4
source

Source: https://habr.com/ru/post/909003/


All Articles