From: Felicián Németh Date: Sat, 11 Jan 2020 18:08:59 +0000 (+0100) Subject: Declare markdown support iff gfm-view-mode installed X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~230 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5d00eac56495ce6786f374785cab034ff82962fc;p=emacs.git Declare markdown support iff gfm-view-mode installed * eglot.el (eglot-client-capabilities): Support markdown only when gfm-view-mode is installed. GitHub-reference: close https://github.com/joaotavora/eglot/issues/408 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index bdc4cd0aaab..596a82d6a80 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -527,7 +527,10 @@ treated as in `eglot-dbind'." :json-false)) :contextSupport t) :hover (list :dynamicRegistration :json-false - :contentFormat ["markdown" "plaintext"]) + :contentFormat + (if (fboundp 'gfm-view-mode) + ["markdown" "plaintext"] + ["plaintext"])) :signatureHelp (list :dynamicRegistration :json-false :signatureInformation `(:parameterInformation