<div dir="ltr">Perhaps this is what you want:<div>(add-hook 'emacs-startup-hook 'erlang-shell)<br></div><div><br></div><div class="gmail_extra">It will start erlang shell and switch to erlang shell buffer after startup even if you are about to open a file when running emacs.<br>
<br><div class="gmail_quote">On Fri, Jul 4, 2014 at 7:08 PM, ami <span dir="ltr"><<a href="mailto:m3oucat@gmail.com" target="_blank">m3oucat@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Vlad,<br>
<br>
I’m trying to run erlang shell at Emacs startup.<br>
Just to get a some kind of IDE, when I have an erlang shell, an editor window, etc<br>
right after startup.<br>
<br>
And I faced with the same problem, you’d faced before.<br>
(see your question @ <a href="http://erlang.org/pipermail/erlang-questions/2004-January/011042.html" target="_blank">http://erlang.org/pipermail/erlang-questions/2004-January/011042.html</a> )<br>
<br>
So, I start erlang shell by<br>
<br>
(erlang-shell)<br>
in .emacs<br>
<br>
but it’s not in active buffer. I, of course, can switch to *erlang* buffer afterwards.<br>
But I don’t want to switch to *erlang* buffer manually always :(<br>
<br>
I tried (sit-for 20) right after (erlang-shell), like<br>
<br>
(erlang-shell)<br>
(sit-for 20)<br>
<br>
And I do have an erlang shell displayed in emacs right after startup.<br>
But when I press any key/mouse button, it disappears :(<br>
But I can switch to *erlang* buffer manually (it’s not the case).<br>
<br>
(switch-to-buffer "*erlang*”)<br>
<br>
doesn’t work as well.(if I place it in .emacs right after (erlang-shell) )<br>
<br>
Has anybody got erlang shell displayed & working & active right after emacs startup?<br>
<br>
Thanks in advance,<br>
<br>
Alex<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Sina Samavati<br>Software engineer<br><br><a href="https://github.com/s1n4" target="_blank">https://github.com/s1n4</a><br><a href="https://twitter.com/sinasamavati" target="_blank">https://twitter.com/sinasamavati</a><br>
</div>
</div></div>