File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,16 @@ Should be able to be run without any arguments."
59
59
:type 'string
60
60
:group 'inf-elixir )
61
61
62
+ (defcustom inf-elixir-open-command " emacsclient --no-wait +__LINE__ __FILE__"
63
+ " Value to be populated into the `ELIXIR_EDITOR' environment variable.
64
+
65
+ The `ELIXIR_EDITOR' is used by the IEx `open/1' helper to open files from the
66
+ REPL. Run `h(open)' in an IEx shell for more information about `ELIXIR_EDITOR' .
67
+
68
+ NOTE: Changing this variable will not affect running REPLs."
69
+ :type 'string
70
+ :group 'inf-elixir )
71
+
62
72
63
73
; ;; Mode definitions and configuration
64
74
(defvar inf-elixir-project-buffers (make-hash-table :test 'equal )
@@ -140,6 +150,7 @@ Always returns a REPL buffer for DIR."
140
150
(let ((buf-name (inf-elixir--buffer-name dir)))
141
151
(if (process-live-p (inf-elixir--get-project-process dir))
142
152
(inf-elixir--get-project-buffer dir)
153
+ (setenv " ELIXIR_EDITOR" inf-elixir-open-command)
143
154
(with-current-buffer
144
155
(apply #'make-comint-in-buffer buf-name nil (car cmd) nil (cdr cmd))
145
156
(inf-elixir-mode)
You can’t perform that action at this time.
0 commit comments