From da888370b4d61025cb9d3d5dbd591b9d04a6f5dd Mon Sep 17 00:00:00 2001 From: Andrii Kolomoiets Date: Thu, 23 Apr 2020 23:41:22 +0300 Subject: [PATCH] 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 --- lisp/progmodes/eglot.el | 1 + 1 file changed, 1 insertion(+) 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) -- 2.39.2