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
@@ -215,7 +180,8 @@ or you set `elixir-format-arguments` in a hook like this:
215
180
(setq elixir-format-arguments nil))))
216
181
```
217
182
218
-
In this example we use [Projectile](https://github.com/bbatsov/projectile) to get the project root and set `elixir-format-arguments` accordingly.
183
+
In this example we use [Projectile](https://github.com/bbatsov/projectile) to determine if we are in a project and then set `elixir-format-arguments` accordingly.
184
+
Please note that this code snippet may cause unhappiness if there is no `.formatter.exs` file available.
Copy file name to clipboardExpand all lines: elixir-format.el
+71-95Lines changed: 71 additions & 95 deletions
Original file line number
Diff line number
Diff line change
@@ -25,32 +25,6 @@
25
25
26
26
(require'ansi-color)
27
27
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"
38
-
:type'string
39
-
:group'elixir-format)
40
-
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
(insert"Elixir or mix binary path not set, please check the documentation for `elixir-format-elixir-path` and `elixir-format-mix-path` with `C-h v <VARNAME> RET` to set the variables appropriately")
71
+
(insert"Emacs is unable to find the executables for elixir and/or mix. Either they are not installed on your system or emacs' PATH is not as wide as it needs to be. The latter is most likely to happen on OSX, in which case the simplest answer may be to add the exec-path-from-shell package to your configuration.")
0 commit comments