Created
June 9, 2010 18:01
-
-
Save lucindo/431875 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun make-erlang () | |
(interactive) | |
(let* ((my-buffer (current-buffer)) | |
(my-file (file-name-nondirectory buffer-file-name))) | |
(when (switch-to-buffer "*erlang*") | |
(goto-char (point-max)) | |
(insert (concat "make:files([" my-file "], [netload]).")) | |
(comint-send-input)) | |
(switch-to-buffer my-buffer))) | |
(setq | |
load-path (cons "/usr/local/lib/erlang/lib/tools-2.6.5.1/emacs" load-path) | |
erlang-root-dir "/usr/local/lib/erlang" | |
exec-path (cons "/usr/local/lib/erlang/bin" exec-path)) | |
(when (require 'erlang-start nil 'noerror) | |
(global-set-key [f7] 'make-erlang)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment