emacs 2026-10-07

For frequent markdown-mode users: does anyone have a way to emulate the effect of having markdown-hide-markup on all lines but the current one? Editing around paired characters (like a backquoted word) is pretty painful, and toggling buffer-wide is jarring enough where i tend to just avoid doing it.

➕ 1

I don't have a way but I would be interested.

2

if you don't do it often, you could use an indirect buffer to edit the line in a different mode? https://www.gnu.org/software/emacs/manual/html_node/emacs/Indirect-Buffers.html

It's a bit less easy to use than what you're suggesting, but I've used them for things like js embedded in an html template and the like, to fix indentation, for example.

mmm, my main usecase is when trying to use #C093426FPUG, the buffer is prettified by default (and LLMs seem to very much like their markup, so hiding it creates quite some visual clutter), but maybe your idea of just writing it in a separate buffer and then copying/sending it over is the path of least resistance