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

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

[nongnu] elpa/nix-mode 8ab089b251 230/500: Set nix-shell-attribute


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode 8ab089b251 230/500: Set nix-shell-attribute
Date: Sat, 29 Jan 2022 08:27:09 -0500 (EST)

branch: elpa/nix-mode
commit 8ab089b2518dff3f6ee7b96dd1543d9bcab50e0c
Author: Matthew Bauer <matthew.bauer@obsidian.systems>
Commit: Matthew Bauer <matthew.bauer@obsidian.systems>

    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



reply via email to

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