From: Andrii Kolomoiets Date: Thu, 23 Apr 2020 20:41:22 +0000 (+0300) Subject: Use text-mode for plaintext markup X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~242 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=da888370b4d61025cb9d3d5dbd591b9d04a6f5dd;p=emacs.git Use text-mode for plaintext markup * eglot.el (eglot--format-markup): Use text-mode for plaintext markup. GitHub-reference: close https://github.com/joaotavora/eglot/issues/444 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 13ee30723bc..6d6f91f55aa 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -1109,6 +1109,7 @@ Doubles as an indicator of snippet support." (list (plist-get markup :value) (pcase (plist-get markup :kind) ("markdown" 'gfm-view-mode) + ("plaintext" 'text-mode) (_ major-mode)))))) (with-temp-buffer (insert string)