Skip to main content

Timeline for Consistent tab alignment

Current License: CC BY-SA 3.0

13 events
when toggle format what by license comment
Nov 7, 2016 at 22:06 vote accept xaxazak
Nov 7, 2016 at 21:35 comment added xaxazak Qudit: That doesn't worry me. Most code I read doesn't use a standard tab width - tabs are used for indentation so all widths are appropriate. However, almost all standard editors (well, the ones I've used: kate, gedit, notepad, xed, and a handful of others) use the method I've described above to align tabs, so I'm just trying to emulate that.
Nov 7, 2016 at 21:04 comment added Qudit 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.
Nov 7, 2016 at 20:39 answer added Stefan timeline score: 1
Nov 7, 2016 at 20:22 comment added xaxazak 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.
Nov 7, 2016 at 20:07 comment added Stefan 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.
Nov 7, 2016 at 20:03 history edited xaxazak CC BY-SA 3.0
added 1 character in body
Nov 7, 2016 at 19:58 history edited xaxazak CC BY-SA 3.0
added 9 characters in body
Nov 7, 2016 at 19:52 history edited xaxazak CC BY-SA 3.0
edited body
Nov 7, 2016 at 19:51 comment added xaxazak 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.
Nov 7, 2016 at 19:44 comment added Stefan 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".
Nov 7, 2016 at 19:26 review First posts
Nov 7, 2016 at 20:40
Nov 7, 2016 at 19:16 history asked xaxazak CC BY-SA 3.0