I have been using emacs for c programming and now that I want to write some Assmebly code, when I press tab, emacs just inserts the spaces. How can I force it to ident the current line with the Tab key?
migrated from stackoverflow.com Oct 1 '12 at 4:02
This question came from our site for professional and enthusiast programmers.
Leave it this way. Most editors have an option to convert a tab to spaces. Why would you want the editor to convert tabs to spaces? You can take your code (either in saved file form or copied to clipboard) and use it in any editor and it will look the same. If you force it to use tabs, and you paste it here, or (we) open it in our editor it will most likely look like crap because we might have a tab set up to be a certain size.
If you really must use tabs instead of spaces, just do us a favor and convert the tabs to spaces before you post here or give it to someone else.