From e0a8a6f35f3afbb838f3c3819d4bf9ca66e10d00 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 11 Jul 2018 23:27:30 +0200 Subject: feat(functions): Add function to start inferior Erlang via Nix --- init/functions.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'init/functions.el') diff --git a/init/functions.el b/init/functions.el index c0169955a19a..019bf1646079 100644 --- a/init/functions.el +++ b/init/functions.el @@ -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) -- cgit 1.4.1