branch: elpa/graphql-mode
commit 8e58196e2107a8845d580d014795c515be4a1388
Merge: 41df2a3140 ad54fdb48a
Author: David Vázquez Púa <[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #1 from syohex/fix-package
    
    Fix package
---
 graphql-mode.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/graphql-mode.el b/graphql-mode.el
index ab72334375..b2185e1374 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -1,9 +1,10 @@
-;;; graphql-mode.el --- An Emacs mode for GraphQL         -*- lexical-binding: 
t; -*-
+;;; graphql-mode.el --- Major mode for editing GraphQL schemas        -*- 
lexical-binding: t; -*-
 
 ;; Copyright (C) 2016  David Vazquez Pua
 
 ;; Author: David Vazquez Pua <[email protected]>
 ;; Keywords: languages
+;; Package-Requires: ((emacs "24.3") (json-mode "1.7.0"))
 
 ;; This program is free software; you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by
@@ -27,6 +28,8 @@
 (require 'newcomment)
 (require 'json)
 (require 'url)
+(require 'json-mode)
+(require 'cl-lib)
 
 (defvar graphql-url
   nil)
@@ -127,7 +130,7 @@ response from the server."
 
 ;;; Check if the point is in an argument list.
 (defun graphql--in-arguments-p ()
-  (let ((opening (second (syntax-ppss))))
+  (let ((opening (cl-second (syntax-ppss))))
     (eql (char-after opening) ?\()))
 
 
@@ -203,6 +206,7 @@ response from the server."
   (setq imenu-generic-expression
         `((nil ,graphql-definition-regex 2))))
 
+;;;###autoload
 (add-to-list 'auto-mode-alist '("\\.graphql\\'" . graphql-mode))
 
 

Reply via email to