]> git.eshelyaron.com Git - emacs.git/commit
Allow read-only modes for markup rendering
authorJoão Távora <joaotavora@gmail.com>
Tue, 1 Jan 2019 14:56:46 +0000 (14:56 +0000)
committerJoão Távora <joaotavora@gmail.com>
Tue, 1 Jan 2019 14:56:46 +0000 (14:56 +0000)
commit355c9c4a656719a94e0a25a04eb913470d46b7dc
treea8395ced34cc6025eec86d73d38bcab828df7cfe
parent0c432de4cf64dca3869a4c7578e9d21fe3bef491
Allow read-only modes for markup rendering

gfm-mode is read-only, so it must be set after the string has been
inserted in the temporary buffer.

* eglot.el (eglot--format-markup): Insert string before setting
mode.

GitHub-reference: close https://github.com/joaotavora/eglot/issues/197
lisp/progmodes/eglot.el