Skip to content

Commit

Permalink
Per #790, #590: Adjust last commit about workspace configuration
Browse files Browse the repository at this point in the history
* README.md (way): Adjust.

* eglot.el (json): Don't require needlessly.
(eglot-show-workspace-configuration): Don't depend on json-mode.

#790: joaotavora/eglot#790
#590: joaotavora/eglot#590
  • Loading branch information
joaotavora committed Sep 17, 2022
1 parent e405967 commit a01da97
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lisp/progmodes/eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
(require 'filenotify)
(require 'ert)
(require 'array)
(require 'json)

;; ElDoc is preloaded in Emacs, so `require'-ing won't guarantee we are
;; using the latest version from GNU Elpa when we load eglot.el. Use an
Expand Down Expand Up @@ -2222,8 +2221,7 @@ format described above.")
(insert (jsonrpc--json-encode conf))
(with-no-warnings
(require 'json)
(require 'json-mode)
(json-mode)
(when (require 'json-mode nil t) (json-mode))
(json-pretty-print-buffer))
(pop-to-buffer (current-buffer)))))

Expand Down

0 comments on commit a01da97

Please sign in to comment.