branch: elpa/graphql-mode
commit 301a2186742f89a3223d85f26808dc75007b8c5d
Author: Rasmus PrĂ©centh <[email protected]>
Commit: Rasmus PrĂ©centh <[email protected]>

    Enable json-mode for the output buffer.
    
    The issue has been resolved:
    https://github.com/joshwnj/json-mode/issues/55
---
 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