feat(functions): Add function to start inferior Erlang via Nix

This commit is contained in:
Vincent Ambo 2018-07-11 23:27:30 +02:00 committed by Vincent Ambo
parent 5b32cd74c6
commit e0a8a6f35f

View file

@ -224,4 +224,11 @@ Including indent-buffer, which should not be called automatically on save."
(last-window (car (seq-intersection right-windows bottom-windows))))
(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)