Skip to content

Commit beb00b3

Browse files
committed
Make inf-elixir-run-cmd public
1 parent 35facb7 commit beb00b3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

inf-elixir.el

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@ Should be able to be run without any arguments."
9090
(inf-elixir--find-umbrella-root default-directory)
9191
(locate-dominating-file default-directory "mix.exs")))
9292

93-
(defun inf-elixir--run-cmd (cmd)
93+
94+
;;; Public functions
95+
96+
;;;###autoload
97+
(defun inf-elixir-run-cmd (cmd)
9498
"Open an IEx buffer (creating one if needed) and run CMD."
9599
(if (and inf-elixir-buffer (comint-check-proc inf-elixir-buffer))
96100
(pop-to-buffer inf-elixir-buffer)
@@ -106,13 +110,11 @@ Should be able to be run without any arguments."
106110
(setq inf-elixir-buffer (current-buffer))
107111
(pop-to-buffer (current-buffer)))))
108112

109-
110-
;;; Public functions
111113
;;;###autoload
112114
(defun inf-elixir (&optional cmd)
113115
"Run Elixir shell, using CMD if given."
114116
(interactive)
115-
(inf-elixir--run-cmd
117+
(inf-elixir-run-cmd
116118
(cond
117119
(cmd cmd)
118120
(current-prefix-arg
@@ -123,7 +125,7 @@ Should be able to be run without any arguments."
123125
"Run REPL in the context of the current project, using CMD if given."
124126
(interactive)
125127
(let ((default-directory (inf-elixir--find-project-root)))
126-
(inf-elixir--run-cmd
128+
(inf-elixir-run-cmd
127129
(cond
128130
(cmd cmd)
129131
(current-prefix-arg

0 commit comments

Comments
 (0)