Erlang Mailing Lists

Author Message

<  Erlyweb mailing list  ~  Erlyweb mode for Emacs

Guest
Posted: Mon Dec 10, 2007 12:02 am Reply with quote
Guest
Hi everyone, I wrote an Erlyweb mode from Emacs. It's derived from the
official Erlang mode, and basically adds couple of keybindings (C-c C-
e k to call erlyweb:compile/1, C-c C-e c to call
erlyweb:create_component/2) and launches an interactive Yaws shell
instead of the vanilla erl one when you hit C-c C-z. I had to scratch
an itch today because it got too annoying to keep typing
erlyweb:compile etc over and over again Smile.

You can download it at http://www.theghalib.com. Documentation in
erlyweb.el.

Also, just a survey, does anyone on this list actually use Emacs for
Erlang development?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
Guest
Posted: Mon Dec 10, 2007 12:21 am Reply with quote
Guest
I guess I should add that the mode is activated when a .erl file that
lies in an erlyweb app dir is opened. Also that this has only been
tested on OS X.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
ketralnis
Posted: Mon Dec 10, 2007 2:39 am Reply with quote
User Joined: 20 Jul 2007 Posts: 151 Location: San Francisco, CA
> I had to scratch an itch today because it
> got too annoying to keep typing
> erlyweb:compile etc over and over again Smile.

I had the same problem, and I needed to be able to start my app from
"erl" instead of from the "yaws" command, so I ended up moving things
around so yaws starts in embedded mode (http://yaws.hyber.org/
embed.yaws). This and a couple of keyboard macros solves most of the
problems that this mode solves. I can post examples if you're curious.

> You can download it at http://www.theghalib.com. Documentation in
> erlyweb.el.

Very cool though, I like it

> Also, just a survey, does anyone on this list actually use Emacs for
> Erlang development?

I do. Emacs does everything from help me write my code to make my toast.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
View user's profile Send private message AIM Address
Guest
Posted: Mon Dec 10, 2007 9:15 am Reply with quote
Guest
Thanks for this... I use emacs. But I develop with {auto_compile,
true}, so I never have to call erlyweb:compile() in development. This
looks very nice though -- I look forward to using it.

On Dec 9, 2007 4:01 PM, Ghalib Suleiman <cowmoo@gmail.com> wrote:
>
> Hi everyone, I wrote an Erlyweb mode from Emacs. It's derived from the
> official Erlang mode, and basically adds couple of keybindings (C-c C-
> e k to call erlyweb:compile/1, C-c C-e c to call
> erlyweb:create_component/2) and launches an interactive Yaws shell
> instead of the vanilla erl one when you hit C-c C-z. I had to scratch
> an itch today because it got too annoying to keep typing
> erlyweb:compile etc over and over again Smile.
>
> You can download it at http://www.theghalib.com. Documentation in
> erlyweb.el.
>
> Also, just a survey, does anyone on this list actually use Emacs for
> Erlang development?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
Guest
Posted: Mon Dec 10, 2007 3:35 pm Reply with quote
Guest
...I can't believe I never knew about {auto_compile, true}, don't know
how I missed that. So embarrassing...

Quick question, what's the status on what Yaws versions are work with
Erlyweb? Does Erlyweb in trunk work with the latest Yaws?

On Dec 10, 1:14 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> Thanks for this... I use emacs. But I develop with {auto_compile,
> true}, so I never have to call erlyweb:compile() in development. This
> looks very nice though -- I look forward to using it.
>
> On Dec 9, 2007 4:01 PM, Ghalib Suleiman <cow...@gmail.com> wrote:
>
>
>
> > Hi everyone, I wrote an Erlyweb mode from Emacs. It's derived from the
> > official Erlang mode, and basically adds couple of keybindings (C-c C-
> > e k to call erlyweb:compile/1, C-c C-e c to call
> > erlyweb:create_component/2) and launches an interactive Yaws shell
> > instead of the vanilla erl one when you hit C-c C-z. I had to scratch
> > an itch today because it got too annoying to keep typing
> > erlyweb:compile etc over and over again Smile.
>
> > You can download it athttp://www.theghalib.com. Documentation in
> > erlyweb.el.
>
> > Also, just a survey, does anyone on this list actually use Emacs for
> > Erlang development?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
Guest
Posted: Tue Dec 11, 2007 8:51 am Reply with quote
Guest
ErlyWeb in trunk does work with Yaws, but annoyingly the Yaws
appmoddata keeps changing between versions. What I did in the Vimagi
app controller is normalize the appmodata field of the arg as follows:

{Appmod, A1} = case yaws_arg:appmoddata(A) of
[$/ | _] = Appmod2 ->
{Appmod2, A};
Other ->
Appmod2 = [$/ | Other],
{Appmod2, yaws_arg:appmoddata(A, Appmod2)}
end,

Then I used Appmod and A1 in the rest of the hook/1 function.

Before ErlyWeb 0.7 is released maybe I should add this code to ErlyWeb
to standardize the appmoddata field between all Yaws versions at least
as far as ErlyWeb is concerned.

What do you think?

Yariv

On Dec 10, 2007 7:34 AM, Ghalib Suleiman <cowmoo@gmail.com> wrote:
>
> ...I can't believe I never knew about {auto_compile, true}, don't know
> how I missed that. So embarrassing...
>
> Quick question, what's the status on what Yaws versions are work with
> Erlyweb? Does Erlyweb in trunk work with the latest Yaws?
>
> On Dec 10, 1:14 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > Thanks for this... I use emacs. But I develop with {auto_compile,
> > true}, so I never have to call erlyweb:compile() in development. This
> > looks very nice though -- I look forward to using it.
> >
> > On Dec 9, 2007 4:01 PM, Ghalib Suleiman <cow...@gmail.com> wrote:
> >
> >
> >
> > > Hi everyone, I wrote an Erlyweb mode from Emacs. It's derived from the
> > > official Erlang mode, and basically adds couple of keybindings (C-c C-
> > > e k to call erlyweb:compile/1, C-c C-e c to call
> > > erlyweb:create_component/2) and launches an interactive Yaws shell
> > > instead of the vanilla erl one when you hit C-c C-z. I had to scratch
> > > an itch today because it got too annoying to keep typing
> > > erlyweb:compile etc over and over again Smile.
> >
> > > You can download it athttp://www.theghalib.com. Documentation in
>
> > > erlyweb.el.
> >
> > > Also, just a survey, does anyone on this list actually use Emacs for
> > > Erlang development?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
Guest
Posted: Wed Dec 12, 2007 8:58 pm Reply with quote
Guest
As long as appmoddata is the only thing that keeps changing, I don't
see anything wrong with this.

On Dec 11, 12:43 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> ErlyWeb in trunk does work with Yaws, but annoyingly the Yaws
> appmoddata keeps changing between versions. What I did in the Vimagi
> app controller is normalize the appmodata field of the arg as follows:
>
> {Appmod, A1} = case yaws_arg:appmoddata(A) of
> [$/ | _] = Appmod2 ->
> {Appmod2, A};
> Other ->
> Appmod2 = [$/ | Other],
> {Appmod2, yaws_arg:appmoddata(A, Appmod2)}
> end,
>
> Then I used Appmod and A1 in the rest of the hook/1 function.
>
> Before ErlyWeb 0.7 is released maybe I should add this code to ErlyWeb
> to standardize the appmoddata field between all Yaws versions at least
> as far as ErlyWeb is concerned.
>
> What do you think?
>
> Yariv
>
> On Dec 10, 2007 7:34 AM, Ghalib Suleiman <cow...@gmail.com> wrote:
>
>
>
> > ...I can't believe I never knew about {auto_compile, true}, don't know
> > how I missed that. So embarrassing...
>
> > Quick question, what's the status on what Yaws versions are work with
> > Erlyweb? Does Erlyweb in trunk work with the latest Yaws?
>
> > On Dec 10, 1:14 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > Thanks for this... I use emacs. But I develop with {auto_compile,
> > > true}, so I never have to call erlyweb:compile() in development. This
> > > looks very nice though -- I look forward to using it.
>
> > > On Dec 9, 2007 4:01 PM, Ghalib Suleiman <cow...@gmail.com> wrote:
>
> > > > Hi everyone, I wrote an Erlyweb mode from Emacs. It's derived from the
> > > > official Erlang mode, and basically adds couple of keybindings (C-c C-
> > > > e k to call erlyweb:compile/1, C-c C-e c to call
> > > > erlyweb:create_component/2) and launches an interactive Yaws shell
> > > > instead of the vanilla erl one when you hit C-c C-z. I had to scratch
> > > > an itch today because it got too annoying to keep typing
> > > > erlyweb:compile etc over and over again Smile.
>
> > > > You can download it athttp://www.theghalib.com. Documentation in
>
> > > > erlyweb.el.
>
> > > > Also, just a survey, does anyone on this list actually use Emacs for
> > > > Erlang development?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
Guest
Posted: Thu Dec 13, 2007 3:30 am Reply with quote
Guest
> Also, just a survey, does anyone on this list actually use Emacs for
> Erlang development?

I do. The emacs mode works quite well and distel is a plus.

I have been wondering how to integrate the distel debugger with
erlyweb in general and how to get a nicer mode for ertl file.

Because I am not currently involved in any Erlang project I haven't
dug further. I would be interested in any effort on that side.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
Guest
Posted: Thu Dec 13, 2007 7:51 pm Reply with quote
Guest
This is something I've been thinking about on and off...the problem is
that multiple majors modes all turned on at the same time doesn't work
too well in Emacs (indentation issues is one thing). It'll need some
experimenting to see what can work with Erltl - I'm a little bit busy
with moving countries now, but in a month or so I might dig deeper.

On Dec 13, 7:29 am, Pierre R <p.radermec...@gmail.com> wrote:
> > Also, just a survey, does anyone on this list actually use Emacs for
> > Erlang development?
>
> I do. The emacs mode works quite well and distel is a plus.
>
> I have been wondering how to integrate the distel debugger with
> erlyweb in general and how to get a nicer mode for ertl file.
>
> Because I am not currently involved in any Erlang project I haven't
> dug further. I would be interested in any effort on that side.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum