[erlang-questions] emacs: moving to shell after compile

David N Murray dmurray@REDACTED
Thu Apr 29 21:09:32 CEST 2010


you could just create a small function that does both in your .emacs file:

(defun erlang-compile-and-jump ()
  (interactive)
  (erlang-compile)
  (other-window))
(global-set-key [f12] 'erlang-compile-and-jump)
or bind the key just in the erlang-mode rather than a global mode (I've
never bothered to do that with any mode so I don't know how).  That way,
it doesn't break when you upgrade erlang.

hth,
Dave

On Apr 29, Doug Edmunds (gmail) scribed:

> I have erlang-mode in .emacs:
>
> (setq load-path (cons  "C:/home/erl5.7.5/lib/tools-2.6.5.1/emacs"
>        load-path))
>        (setq erlang-root-dir "C:/home/erl5.7.5")
>        (setq exec-path (cons "C:/home/erl5.7.5/bin" exec-path))
>        (require 'erlang-start)
>
> /lib/tools-2.6.5.1/emacs has:
> erlang.el
> erlang-eunit.el
> erlang-skels.el
> erlang-start.el
>
> I want C-C C-K to jump to the shell after compiling.
>
> I included (global-set-key [f12] 'other-window) so I can do
> this manually, but I'd like it to be automatic.
>
> What is the lisp code to use and which file should it go in?
>
> --dae
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>


More information about the erlang-questions mailing list