[TxMt] setting options on document open/close

Allan Odgaard allan at macromates.com
Wed Sep 21 14:23:17 UTC 2005


On 20/09/2005, at 10.57, Eric Peden wrote:

> [...] (I have a macro bound to <return>
> that hands off the current paragraph to the 'par' wrapping utility;  
> this
> handles wrapping better than TM's "Reformat Paragraph" command).

I didn't know this utility, but have now installed it. Though I see  
(from the man):

     For the "power user", a full understanding of par will require  
multiple
     readings of the TERMINOLOGY, OPTIONS, DETAILS, and EXAMPLES  
sections.

So may be a while before grasp it all ;)

> The
> last thing I'd like to do to polish off the text-wrap is to set "Soft
> wrap" on and adjust the wrap column whenever an email is opened.
>
> Is there any way to do this? The soft wrap setting at least appears
> to be stored on a per-window basis.

It is not, it is saved on (sort of) a per-file type basis.

So what I'd suggest is to create a new language (you'd probably do  
that anyway to get proper styling of quoted text etc.) and use that  
language for your emails (so give it a unique extensions, so they'll  
be recognized).

If you toggle the soft wrap setting, while the language is set to  
your new email language, it should stick for that file type.






More information about the textmate mailing list