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

    Use javascript-mode for nix-drv-mode
    
    json-mode is based off of javascript-mode, besides some extra
    highlighting and key binds. This eliminates the json-mode external
    dependency.
    
    Fixes #92
---
 nix-drv-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/nix-drv-mode.el b/nix-drv-mode.el
index 41d5657f09..c9b253be6b 100644
--- a/nix-drv-mode.el
+++ b/nix-drv-mode.el
@@ -4,7 +4,7 @@
 ;; Homepage: https://github.com/NixOS/nix-mode
 ;; Version: 1.2.1
 ;; Keywords: nix, languages, tools, unix
-;; Package-Requires: ((emacs "24.3") (json-mode "1.6.0"))
+;; Package-Requires: ((emacs "24.3"))
 
 ;; This file is NOT part of GNU Emacs.
 
@@ -16,7 +16,7 @@
 
 ;;; Code:
 
-(require 'json-mode)
+(require 'javascript-mode)
 (require 'nix)
 
 (defvar-local nix-drv-mode nil)
@@ -40,7 +40,7 @@
                  (format "%s show-derivation \"%s\""
                         nix-executable
                         (buffer-file-name))))
-        (json-mode)
+        (javascript-mode)
         (set-buffer-modified-p nil)
         (read-only-mode 1)))))
 

Reply via email to