emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/nix-mode ecee0e39e9 150/500: Add second options for nix-sh


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode ecee0e39e9 150/500: Add second options for nix-shell
Date: Sat, 29 Jan 2022 08:26:59 -0500 (EST)

branch: elpa/nix-mode
commit ecee0e39e972aa4aabfa2b44046933b2ed87bbbf
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>

    Add second options for nix-shell
---
 nix-shell.el | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/nix-shell.el b/nix-shell.el
index a7892a5148..7e7863a4bf 100644
--- a/nix-shell.el
+++ b/nix-shell.el
@@ -17,13 +17,16 @@
   :group 'nix)
 
 ;;;###autoload
-(defun nix-shell (attribute)
+(defun nix-shell (path attribute)
   "Run nix-shell in a terminal.
 
+PATH path containing Nix expressions.
 ATTRIBUTE attribute name in nixpkgs to use."
-  (interactive (list (read-from-minibuffer "Attribute name: ")))
+  (interactive
+   (list (read-from-minibuffer "Nix path: " "<nixpkgs>")
+         (read-from-minibuffer "Nix attribute name: ")))
   (set-buffer (make-term "nix-shell" nix-shell-executable nil
-                         "<nixpkgs>" "-A" attribute))
+                         path "-A" attribute))
   (term-mode)
   (term-char-mode)
   (switch-to-buffer "*nix-shell*"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]