feat(functions): Add function to start inferior Erlang via Nix
This commit is contained in:
parent
5b32cd74c6
commit
e0a8a6f35f
1 changed files with 7 additions and 0 deletions
|
@ -224,4 +224,11 @@ Including indent-buffer, which should not be called automatically on save."
|
||||||
(last-window (car (seq-intersection right-windows bottom-windows))))
|
(last-window (car (seq-intersection right-windows bottom-windows))))
|
||||||
(eq (current-buffer) (window-buffer last-window))))
|
(eq (current-buffer) (window-buffer last-window))))
|
||||||
|
|
||||||
|
(defun inferior-erlang-nix-shell ()
|
||||||
|
"Start an inferior Erlang process from the root of the current
|
||||||
|
project."
|
||||||
|
(interactive)
|
||||||
|
(inferior-erlang
|
||||||
|
(format "nix-shell --command erl %s" (cdr (project-current)))))
|
||||||
|
|
||||||
(provide 'functions)
|
(provide 'functions)
|
||||||
|
|
Loading…
Reference in a new issue