Created
February 3, 2010 17:12
-
-
Save jamesaimonetti/293788 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 erl-shell-with-flags (flags) | |
"Start an erlang shell with flags" | |
(interactive (list (read-string "Flags: "))) | |
(set 'inferior-erlang-machine-options (split-string flags)) | |
(erlang-shell)) | |
;; map Ctrl-c Ctrl-z to the new function | |
(global-set-key "\C-c\C-z" 'erl-shell-with-flags) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment