Re: [elm-discuss] any editor supports elm simple whole-buffer reformat?

2017-07-21 Thread Wendel Wang

For me the LightTable elm-light plugin works well.
You install it with the plugin manager and then set up the keymapping 
depending on you rpreferences.
An example setup is given in the elm-light docu that you can just cut and 
paste into you user-settings file.

I have set up elm-format on save.

Some other functions are also useful and in-editor linting works as well.

You mentioned you faced difficulties using LightTable. What was the problem?

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] any editor supports elm simple whole-buffer reformat?

2017-07-03 Thread Chad Woolley
FWIW, I was able to get elm-format to auto-format on save in Jetbrains IDEs
(RubyMine specifically, but should work in any of them).  Took a little
extra scripting glue and macros, but it worked.

-- Chad

On Fri, Jun 30, 2017 at 2:49 PM, Raoul Duke  wrote:

> hi,
>
> One use case I have in all programming systems is to auto reformat a whole
> file buffer (let alone a whole directory tree of code). I tried doing that
> in emacs elm-mode but it seems that it doesn't quite know enough to do what
> I am hoping for. Is there any emacs mode for elm that knows what to do
> automagically?
>
> I also just tried it in atom, with language-elm, and it doesn't seem to
> know either. Is there any good working editor system that can do it? Is
> there something about elm's BNF-or-whatever that prevents editors from
> being able to do it? (Does it support my long held believe that whitespace
> sensitive syntax being a bad idea when all concerns are weighed? :-)
>
> (I did try to get set up with lighttable but that was sort of a miserable
> experience for me to date, so i haven't gotten to the point of trying auto
> reformat there.)
>
> thank you!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] any editor supports elm simple whole-buffer reformat?

2017-07-03 Thread 'Rupert Smith' via Elm Discuss
On Monday, July 3, 2017 at 7:55:41 AM UTC+1, Zachary Kessin wrote:
>
> I have found elm and emacs work just fine it just takes some fine tuning
>

Care to share some of your emacs configuration? 

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] any editor supports elm simple whole-buffer reformat?

2017-07-03 Thread Zachary Kessin
I have found elm and emacs work just fine it just takes some fine tuning

Zach
ᐧ

On Sun, Jul 2, 2017 at 8:53 PM, 'Rupert Smith' via Elm Discuss <
elm-discuss@googlegroups.com> wrote:

> On Saturday, July 1, 2017 at 1:33:04 AM UTC+1, Raoul Duke wrote:
>>
>> Thanks! I did do that. Did sorta get it working in emacs mode! But
>> overall it didn't / doesn't seem to work so well, as I said -- wonky
>> UX. Now hoping for something that really just works out of the box
>> w/out any extra config at all?
>>
>
> I am also a fan of Emacs, but have not had much joy with Emacs and Elm.
> Probably we are in a minority liking both Emacs and Elm.
>
> Try Atom + elmjitsu + elm-format.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Zach Kessin
Teaching Web Developers to test code to find more bugs in less time
Skype: zachkessin
+972 54 234 3956 / +44 203 734 9790 / +1 617 778 7213

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] any editor supports elm simple whole-buffer reformat?

2017-07-02 Thread 'Rupert Smith' via Elm Discuss
On Saturday, July 1, 2017 at 1:33:04 AM UTC+1, Raoul Duke wrote:
>
> Thanks! I did do that. Did sorta get it working in emacs mode! But 
> overall it didn't / doesn't seem to work so well, as I said -- wonky 
> UX. Now hoping for something that really just works out of the box 
> w/out any extra config at all?
>

I am also a fan of Emacs, but have not had much joy with Emacs and Elm. 
Probably we are in a minority liking both Emacs and Elm.

Try Atom + elmjitsu + elm-format. 

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] any editor supports elm simple whole-buffer reformat?

2017-06-30 Thread Raoul Duke
Thanks! I did do that. Did sorta get it working in emacs mode! But
overall it didn't / doesn't seem to work so well, as I said -- wonky
UX. Now hoping for something that really just works out of the box
w/out any extra config at all? I.e. a real IDE where the errors are
shown inline with red squiggly underlining, that kind of thing. I am
not a VIM person so the elm-format editor support table shows me the
only other choices are LightTable and Atom I guess. I'll try again to
get Atom going... I can now do the Ctrl+Alt+B thing there. But it
doesn't seem to really be easily out-of-the-box integrated with the
compiler? There's apparently linter-elm-make but that looks like yet
more steps of things that might or might not work and the on-the-fly
is experimental? I guess I am coming to the conclusion that there
isn't really a real IDE experience for elm.

(I am now learning the hard way that I don't like elm's recommended
formatting much oh well. We should all have languages that use AST/ASG
instead of  subjective syntax-ASCII, so that everybody can have their
own format and yet never have to merge based on inconsistent /
differently opinionated ASCII. :-)

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] any editor supports elm simple whole-buffer reformat?

2017-06-30 Thread N H
There is a table in the README for elm-format explaining all the different
editors that have support for it and the setup steps required. I suggest
checking that out to get an idea

On 1 July 2017 at 01:55, Raoul Duke  wrote:

> So I just tried elm-format in emacs elm-mode and it... wasn't such a
> good experience. Is there currently a best editor for Elm that is the
> most bullet proof / featureful? That doesn't require me to do all
> sorts of setup that might/not work?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] any editor supports elm simple whole-buffer reformat?

2017-06-30 Thread Raoul Duke
So I just tried elm-format in emacs elm-mode and it... wasn't such a
good experience. Is there currently a best editor for Elm that is the
most bullet proof / featureful? That doesn't require me to do all
sorts of setup that might/not work?

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] any editor supports elm simple whole-buffer reformat?

2017-06-30 Thread Raoul Duke
Thanks! Will do. (Dunno if it would be cool if the editor plugins had it
built in already?)

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] any editor supports elm simple whole-buffer reformat?

2017-06-30 Thread N H
In Elm, we have a single formatting tool which is used by all plugins,
known as elm-format: https://github.com/avh4/elm-format

You may not have installed it yet. Check out the README in that repo and
it'll tell you what to do.

On 30 June 2017 at 23:49, Raoul Duke  wrote:

> hi,
>
> One use case I have in all programming systems is to auto reformat a whole
> file buffer (let alone a whole directory tree of code). I tried doing that
> in emacs elm-mode but it seems that it doesn't quite know enough to do what
> I am hoping for. Is there any emacs mode for elm that knows what to do
> automagically?
>
> I also just tried it in atom, with language-elm, and it doesn't seem to
> know either. Is there any good working editor system that can do it? Is
> there something about elm's BNF-or-whatever that prevents editors from
> being able to do it? (Does it support my long held believe that whitespace
> sensitive syntax being a bad idea when all concerns are weighed? :-)
>
> (I did try to get set up with lighttable but that was sort of a miserable
> experience for me to date, so i haven't gotten to the point of trying auto
> reformat there.)
>
> thank you!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] any editor supports elm simple whole-buffer reformat?

2017-06-30 Thread Raoul Duke
hi,

One use case I have in all programming systems is to auto reformat a whole 
file buffer (let alone a whole directory tree of code). I tried doing that 
in emacs elm-mode but it seems that it doesn't quite know enough to do what 
I am hoping for. Is there any emacs mode for elm that knows what to do 
automagically?

I also just tried it in atom, with language-elm, and it doesn't seem to 
know either. Is there any good working editor system that can do it? Is 
there something about elm's BNF-or-whatever that prevents editors from 
being able to do it? (Does it support my long held believe that whitespace 
sensitive syntax being a bad idea when all concerns are weighed? :-)

(I did try to get set up with lighttable but that was sort of a miserable 
experience for me to date, so i haven't gotten to the point of trying auto 
reformat there.)

thank you!

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.