huwr
huwr

Reputation: 1800

Emacs tab width XML

I am editing an XML file in emacs which has a tab width of 4, so I would like to change emacs' tab width the 4 also. I don't want to edit my .emacs as this is the only time I want to change tab widths (I won't need it again). How do I do this?

Edit: As a way of clarification here is a screenshot of how I might achieve this in Sublime Text 2 (I'm not trying to start a editor war; I'd rather like to be able to do something like this in emacs)

enter image description here

Upvotes: 2

Views: 660

Answers (1)

Cui Heng
Cui Heng

Reputation: 1285

M-x customize-variable return Then input "tab-width", and you could find the configuration of tab-width, set the value and apply it.

enter image description here

Upvotes: 3

Related Questions