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) |
NewerOlder