Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Erlang #39

Closed
slaykovsky opened this issue Mar 5, 2014 · 4 comments
Closed

Add support for Erlang #39

slaykovsky opened this issue Mar 5, 2014 · 4 comments

Comments

@slaykovsky
Copy link

Hi! Please add Erlang support for your awesome package ^_^

@rgbkrk
Copy link
Member

rgbkrk commented Mar 5, 2014

Is there an Erlang language pack for Atom that people are relying on? atom-script relies on Atom's grammar list and name structure and Erlang isn't built in (yet). How's this one:

https://github.com/jonathanmarvens/atom-language-erlang

My mac is busily installing Erlang right now so I can actually tinker with this.

screen shot 2014-03-05 at 8 48 12 am

We only need two command/arg setups both of which are expected to produce output to stdout and stderr:

  • Command that takes arbitrary text
    (e.g. python -c 'print("hi")')
  • Command that takes a file
    (e.g. python test.py)

@slaykovsky
Copy link
Author

There is no such simple as python. It will be good to just open Erlang REPL in module location as Emacs do.

@slaykovsky
Copy link
Author

Hi!
I wrote this to grammars.coffee:

Erlang:
    command: "erl"
    "Selection Based": (code) -> ['-noshell -eval', code +", init:stop()."]

Then, I did:

apm update

in my term.
And then, when I trying to evaluate selected text, I get this:
bildschirmfoto 2014-03-13 um 17 01 12

@slaykovsky
Copy link
Author

Wow, sorry for abusing this issue, but I did it! ^_^ Now it's working – Selection based evaluation. Now I'll try to do pull request :)
bildschirmfoto 2014-03-13 um 17 09 08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants