branch: elpa/nix-mode
commit 8ab089b2518dff3f6ee7b96dd1543d9bcab50e0c
Author: Matthew Bauer <[email protected]>
Commit: Matthew Bauer <[email protected]>
Set nix-shell-attribute
Also nix-shell-file is risky
---
nix-shell.el | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/nix-shell.el b/nix-shell.el
index 349a287adc..c448cd314a 100644
--- a/nix-shell.el
+++ b/nix-shell.el
@@ -25,6 +25,12 @@
:group 'nix)
(defcustom nix-shell-file nil
+ "Set to the file to run the nix-shell for."
+ :type 'string
+ :group 'nix-shell
+ :risky t)
+
+(defcustom nix-shell-attribute nil
"Set to the file to run the nix-shell for."
:type 'string
:group 'nix-shell)
@@ -192,14 +198,5 @@ ATTRIBUTE an attribute of the Nix file to use."
(current-buffer))
nix-file attribute)))
-;;;###autoload
-(define-minor-mode global-nix-shell-mode
- "A minor mode for setting up build tools from Nix."
- :group 'nix
- :global t
- (if nix-shell-mode
- (add-hook 'find-file-hook 'nix-shell t)
- (remove-hook 'find-file-hook 'nix-shell)))
-
(provide 'nix-shell)
;;; nix-shell.el ends here