[erlang-questions] get erlang-shell working, displayed & active right after emacs startup
Fri Jul 4 20:29:04 CEST 2014
On Fri, Jul 4, 2014 at 10:41 AM, ami <m3oucat@REDACTED> wrote:
> Hi all.
> I’m trying to run erlang shell at Emacs startup.
> Just to get a some kind of IDE, when I have an erlang shell, an editor
> window, etc
> right after startup.
> And I faced with the same problem as had been once arisen here
> (http://erlang.org/pipermail/erlang-questions/2004-January/011042.html )
> So, I start erlang shell by
> in .emacs
> but it’s not in active buffer. I, of course, can switch to *erlang* buffer
> But I don’t want to switch to *erlang* buffer manually always :(
> I tried (sit-for 20) right after (erlang-shell), like
> (sit-for 20)
> And I do have an erlang shell displayed in emacs right after startup.
> But when I press any key/mouse button, it disappears :(
> But I can switch to *erlang* buffer manually (it’s not the case).
> (switch-to-buffer "*erlang*”)
> doesn’t work as well.(if I place it in .emacs right after (erlang-shell) )
> Has anybody got erlang shell displayed & working & active right after
> emacs startup?
You might try something like this in your ~/.emacs file:
'(lambda () (delete-other-windows (display-buffer "*erlang*"))))
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions