Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • There is a ton of confusion about what is "tab" in Emacs, so please be specific when you say "I have tab width set at 2". Commented Nov 7, 2016 at 19:44
  • The variable named "tab-width" is set to 2, (I also played around with some other variables without success). However, I don't know if that's the variable I should be using, I'm just looking for any way to achieve the said alignment. Commented Nov 7, 2016 at 19:51
  • How do you know tab-width is set to 2? Where is it set to 2? It's a buffer-local variable, so setting it in your .emacs won't make a difference in your C-mode buffers. IOW be specific. Commented Nov 7, 2016 at 20:07
  • I'm new to emacs (Kate's developed hideous bugs so I'm shopping for an alternative) so sorry if I'm not understanding how it all works yet. Options->Customize Emacs->Browse Customization Groups->Emacs->Editing->Editing Basics->Tab Width = 2. But my current setup isn't important - I just want to know how I should be achieving this. Commented Nov 7, 2016 at 20:22
  • If you set tab-width to a value other than the default you're likely to run into problems whenever you try to read code written by someone using a standard tab width. Commented Nov 7, 2016 at 21:04