branch: elpa/nix-mode
commit 9e59bcf59eda915483404062b7e29891043ff6f7
Author: Matthew Bauer <[email protected]>
Commit: Matthew Bauer <[email protected]>

    Fix read only .drv file issue
---
 nix-drv-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/nix-drv-mode.el b/nix-drv-mode.el
index a0eb60c0f4..fdbc4f82f9 100644
--- a/nix-drv-mode.el
+++ b/nix-drv-mode.el
@@ -37,7 +37,8 @@
                (format "%s show-derivation \"%s\""
                       nix-executable
                       (buffer-file-name))))
-      (json-mode))
+      (json-mode)
+      (set-buffer-modified-p nil))
     (set-buffer-modified-p nil)
     (read-only-mode 1)))
 

Reply via email to