You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: elixir-format.el
+66-29Lines changed: 66 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -25,13 +25,29 @@
25
25
26
26
(require'ansi-color)
27
27
28
-
(defcustomelixir-format-elixir-path"elixir"
29
-
"Path to the Elixir interpreter."
28
+
(defcustomelixir-format-elixir-path""
29
+
"Path to the Elixir executable. Usually it is /usr/local/bin/elixir. You can type `which elixir` in terminal to find out the elixir binary path in your system.
30
+
31
+
Customize the elixir path
32
+
33
+
In Emacs, run following command to customize option
34
+
35
+
M-x customize-option
36
+
37
+
Customize-variable: elixir-format-elixir-path"
30
38
:type'string
31
39
:group'elixir-format)
32
40
33
-
(defcustomelixir-format-mix-path"/usr/bin/mix"
34
-
"Path to the 'mix' executable."
41
+
(defcustomelixir-format-mix-path""
42
+
"Path to the 'mix' executable. Usually it is /usr/local/bin/mix. You can type `which mix` in terminal to find out the mix binary path in your system
43
+
44
+
Customize the mix path
45
+
46
+
In Emacs, run following command to customize option
47
+
48
+
M-x customize-option
49
+
50
+
Customize-variable: elixir-format-mix-path"
35
51
:type'string
36
52
:group'elixir-format)
37
53
@@ -125,6 +141,24 @@ Shamelessly stolen from go-mode (https://github.com/dominikh/go-mode.el)"
125
141
(error"Invalid rcs patch or internal error in elixir-format--apply-rcs-patch"))))))))
(insert"elixir or mix binary path not set. Please run `C-h v a-variable RET` for `elixir-format-elixir-path` and `elixir-format-mix-path` variables to see docs to customize necessary variables for elixir and mix.")
0 commit comments