We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2738c46 + d2a23b1 commit 30010a1Copy full SHA for 30010a1
elixir-mode.el
@@ -408,13 +408,16 @@
408
(message "Compiled and saved as %s" (elixir-mode-compiled-file-name)))))
409
410
;;;###autoload
411
-(defun elixir-mode-iex ()
+(defun elixir-mode-iex (&optional args-p)
412
"Elixir mode interactive REPL."
413
- (interactive)
414
- (unless (comint-check-proc "*IEX*")
415
- (set-buffer
416
- (apply 'make-comint "IEX"
417
- elixir-iex-command nil '())))
+ (interactive "P")
+ (let ((switches (if (equal args-p nil)
+ '()
+ (split-string (read-string "Additional args: ")))))
+ (unless (comint-check-proc "*IEX*")
418
+ (set-buffer
419
+ (apply 'make-comint "IEX"
420
+ elixir-iex-command nil switches))))
421
(pop-to-buffer "*IEX*"))
422
423
0 commit comments