This is probably a really basic question. But, but something I hadn't thought about before. When: When editing code, how to indent.? I think thethe way to go is simply use the tab key and then, once indented once, emacsEmacs can work out that you are on an indented line, and when you do apress return, you get back to the indented locationsame indentation level. And if you tab once more, you are at the 2nd indentsecond indentation level.
On my emacsEmacs the indentation seemslevels seem to be 2two characters each. In my .emacs.emacs
file, I see '(tab-width 2) -'(tab-width 2)
— presumably the reason I get 2 charactertwo-character indents?
If I go to whitespace-modewhitespace-mode
, I see there are no tabstab characters even though I did press tab for the indent. In my .emacs.emacs
file, I see: (setq-default indent-tabs-mode nil)(setq-default indent-tabs-mode nil)
.
Does indent-tabs-mode nilindent-tabs-mode
being nil
change tabs to spaces?