branch: elpa/graphql-mode
commit 7088db7250e5a44abadae75ee69eb83b9123b002
Merge: 09669d4343 301a218674
Author: David Vázquez Púa <[email protected]>
Commit: GitHub <[email protected]>

    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