branch: elpa/graphql-mode
commit 7c37aee28bf8c8ffb3da73df5571c4e1e352562b
Author: Xiang Ji <[email protected]>
Commit: David Vázquez Púa <[email protected]>
Open .gql files automatically as well
---
graphql-mode.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/graphql-mode.el b/graphql-mode.el
index ea64b085a4..2fb0c21c34 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -30,8 +30,8 @@
;; Additionally, it is able to
;; - Sending GraphQL queries to an end-point URL
;;
-;; Files with the .graphql extension are automatically opened with
-;; this mode.
+;; Files with the .graphql and .gql extensions are automatically
+;; opened with this mode.
;;; Code:
@@ -404,6 +404,8 @@ This is the function to be used for the hook
`completion-at-point-functions'."
;;;###autoload
(add-to-list 'auto-mode-alist '("\\.graphql\\'" . graphql-mode))
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.gql\\'" . graphql-mode))
(provide 'graphql-mode)