<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On 9 Nov 2006, at 14:37, Nick Sieger wrote:</DIV><BLOCKQUOTE type="cite">On 10/27/06, <B class="gmail_sendername">James Milne</B> <<A href="mailto:james.milne@mac.com">james.milne@mac.com</A>> wrote:<DIV><SPAN class="gmail_quote"></SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hello,<BR><BR>I am working a lot with source code written using Emacs on Linux. The<BR>prevailing convention is that tabs are presented as 8 spaces, but<BR>indents are only 4 spaces. Indenting will insert spaces, and Emacs <BR>seems to swap groups of 8 spaces for a tab.<BR>Is there any way to do this with TextMate at the moment?</BLOCKQUOTE><DIV><BR>Not mentioned so far is that you're probably best off setting tabsize to 8, converting all tabs to spaces, and then switching back to 4-space soft-tabs. <BR><BR>I have seen that type of tab encoding before as well, but any emacs hacker worth her salt [1] uses "(setq indent-tabs-mode nil)".<BR></DIV></DIV></BLOCKQUOTE><BR></DIV><DIV>Sadly I'm going to get short shrift informing my emacs hackers that they have to change their coding style just to suit my choice of editor :-)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Also, I don't want to change the whitespace in these files, as it means I'm touching every line in the source file. This makes my diff more complicated when I check back into CVS. When someone else has to resolve conflicts with their merges they would find I had changed every single line in the file, most of which is just replacing tabs with spaces. Again, not going to be very popular :-)</DIV><BR><DIV>It's the only usability niggle I have with TextMate. I keep learning more funky keyboard shortcuts every day which make it a great environment otherwise!</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>--</DIV><DIV>Kind regards,</DIV><DIV>James Milne</DIV></BODY></HTML>