From 5dcdcad8869f5c63ed6f86499aaa9e162196d076 Mon Sep 17 00:00:00 2001 From: John Soo Date: Tue, 29 Sep 2020 09:58:05 -0700 Subject: [PATCH] gnu: Add emacs-graphql-mode. * gnu/packages/emacs-xyz.scm (emacs-graphql-mode): New variable. --- gnu/packages/emacs-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index fca4c22569..2859028809 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -765,6 +765,40 @@ GraphQL is a data query language and runtime designed and used to request and deliver data to mobile and web apps.") (license license:gpl3+))) +(define-public emacs-graphql-mode + ;; No tagged commit + (let ((commit "9bed568ec86242dbe30bdbab324aa0eb2cd9bf08") + (revision "1")) + (package + (name "emacs-graphql-mode") + (version commit) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/davazp/graphql-mode") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0x9y7qq6y0zg8ncamzvk68ccmdyzh7xsj0xs0ykyl20d5wdpplj4")))) + (build-system emacs-build-system) + (home-page "https://github.com/davazp/graphql-mode") + (synopsis "Emacs mode to edit GraphQL schema and queries") + (description + "This package implements a major mode to edit GraphQL schemas and +query. The basic functionality includes: +@itemize +@item Syntax highlight +@item Automatic indentation +Additionally, it is able to +@end itemize +@itemize +@item Sending GraphQL queries to an end-point URL +@end itemize +Files with the @file{.graphql} and @file{.gql} extensions are automatically +opened with this mode.") + (license license:gpl3+)))) + (define-public emacs-ghub (package (name "emacs-ghub") -- 2.28.0