emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/graphql-mode 7088db7250 091/122: Merge pull request #29 fr


From: ELPA Syncer
Subject: [nongnu] elpa/graphql-mode 7088db7250 091/122: Merge pull request #29 from Prillan/enable-json-mode
Date: Sat, 29 Jan 2022 08:03:37 -0500 (EST)

branch: elpa/graphql-mode
commit 7088db7250e5a44abadae75ee69eb83b9123b002
Merge: 09669d4343 301a218674
Author: David Vázquez Púa <davazp@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #29 from Prillan/enable-json-mode
    
    Enable json-mode for the output buffer.
---
 graphql-mode.el | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/graphql-mode.el b/graphql-mode.el
index df3ab6dec4..33e4bab082 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -203,14 +203,8 @@ Please install it and try again."))
         (with-current-buffer-window
          "*GraphQL*" 'display-buffer-pop-up-window nil
          (erase-buffer)
-         ;; TODO: This has been disabled temporarily as
-         ;; json-mode does not support enabling the mode for buffers
-         ;; without files at this point:
-         ;;
-         ;; https://github.com/joshwnj/json-mode/issues/55
-         ;;
-         ;; (when (fboundp 'json-mode)
-         ;;   (json-mode))
+         (when (fboundp 'json-mode)
+           (json-mode))
          (insert (json-encode (request-response-data response)))
          (json-pretty-print-buffer)
          (goto-char (point-max))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]