Glad to hear you were able to resolve the issue. I noticed this earlier but 
did not have a chance to respond... this Stack Overflow question 
<http://stackoverflow.com/questions/24431534/how-to-smart-indent-files-automatically-on-save-in-light-table>
 
that is rather similar.

On Friday, September 23, 2016 at 9:33:28 PM UTC-4, Chris Van Vranken wrote:
>
> I just found that this works: [:editor.elm "ctrl-s" :save :elm-format 
> :elm.lint] though I don't understand why.
>
> On Friday, September 23, 2016 at 8:26:50 PM UTC-4, Chris Van Vranken wrote:
>>
>> I am trying to trigger a command to format text before saving,  but when 
>> I use the on-save behavior it seems to occur after the save since it shows 
>> that the file is dirty again.  Is there way a way to make this happen prior 
>> to saving the file?
>>
>> This is the behavior I tried:
>> [:editor.elm :lt.objs.editor.file/on-save :elm-format-buffer]
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Light Table Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to