Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have tried to parse my language_data.txt, which is edited by emacs. The different column is seperated by "\tab".

But when I read the file, it is found that the tab characters has been replaced by many \space characters. For example:

en_US   shiphrah        02005   book reader no connection
en_US   shiphrah        02006   user reader no connection

How to insert tab character in Text mode?

share|improve this question

migrated from stackoverflow.com Jun 1 '13 at 12:56

This question came from our site for professional and enthusiast programmers.

3 Answers 3

up vote 11 down vote accepted

C-q <tab>

C-q insert the next character as a raw character

share|improve this answer

In addition to answer given: Check value of indent-tabs-mode, customize it if needed. Several hooks use it's value doing translations TAB-Blank.

share|improve this answer

If you want TAB key to insert a tab character, add this to your ~/.emacs

(global-set-key (kbd "TAB") 'self-insert-command);

More helpful info on emacs + TAB : http://vserver1.cscs.lsa.umich.edu/~rlr/Misc/emacs_tabs.htm

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.