Thanks, it worked as described. Is there a chance that this could be added as an option in a future release?<br><br>Thanks.<br><br><div><span class="gmail_quote">On 2/7/06, <b class="gmail_sendername">Allan Odgaard</b> <
<a href="mailto:throw-away-1@macromates.com">throw-away-1@macromates.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 8/2/2006, at 3:47, El Cuco wrote:<br><br>> Is there a way to set the default language for new documents to<br>> something other than "plain text"?<br><br>Yes, but it's a little tricky.<br><br>First you need to find the UUID of the language you want as default.
<br><br>All the default languages are stored in TextMate.app/Contents/<br>SharedSupport/Bundles in the Syntaxes folder of the bundle.<br><br>This is in the binary plist format, so you'll need to convert it<br>first to readable form. Let's say we want HTML to be the new default
<br>language, we would do (from terminal):<br><br>% cd /Applications/TextMate.app/Contents/SharedSupport/Bundles/<br>HTML.tmbundle/Syntaxes<br>% plutil -convert xml1 HTML.plist<br>% grep -A1 uuid HTML.plist<br> <key>uuid</key>
<br> <string>17994EC8-6B1D-11D9-AC3A-000D93589AF6</string><br><br>Here "17994EC8-6B1D-11D9-AC3A-000D93589AF6" is the UUID. Now we need<br>to tell TM to use that as default by altering its defaults database.
<br>First quit TextMate, then from terminal run:<br><br>% defaults write com.macromates.textmate OakDefaultLanguage<br>17994EC8-6B1D-11D9-AC3A-000D93589AF6<br><br>Start TextMate, and notice how all new documents are set to be HTML
<br>by default.<br><br><br>______________________________________________________________________<br>For new threads USE THIS: <a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>(threading gets destroyed and the universe will collapse if you don't)
<br><a href="http://lists.macromates.com/mailman/listinfo/textmate">http://lists.macromates.com/mailman/listinfo/textmate</a><br></blockquote></div><br>