* README.md (way): Adjust.
* eglot.el (json): Don't require needlessly.
(eglot-show-workspace-configuration): Don't depend on json-mode.
GitHub-reference: per https://github.com/joaotavora/eglot/issues/790
GitHub-reference: per https://github.com/joaotavora/eglot/issues/590
(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
(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)))))