]> git.eshelyaron.com Git - emacs.git/commitdiff
Use text-mode for plaintext markup
authorAndrii Kolomoiets <andreyk.mad@gmail.com>
Thu, 23 Apr 2020 20:41:22 +0000 (23:41 +0300)
committerGitHub <noreply@github.com>
Thu, 23 Apr 2020 20:41:22 +0000 (21:41 +0100)
* 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

index 13ee30723bcdeb7d5afc02880339dc6336c9f2c0..6d6f91f55aaa72b0876fedc9eb0ee0dd6baa4359 100644 (file)
@@ -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)