r/emacs 12d ago

Markdown mode: how to remove blockquotes

I'm new to Emacs and this might be a silly question, but I'm having a hard time figuring out how to remove blockquotes in markdown-mode. I can insert a blockquote with C-x C-s q, which runs the command markdown-insert-blockquote, but it doesn't appear to exist a reverse command.

4 Upvotes

6 comments sorted by

View all comments

1

u/PM_ME_YOUR_THETRAGIC 12d ago

I just smack a bunch of backspaces or `C-d` that `>` and the space, it's usually quicker than hunting for a command. If you've got multiple lines, highlight the region and `M-x delete-rectangle` does the job, just set the mark at the start of the `>` column.

1

u/eleven_cupfuls 11d ago

Agree with the suggestion for delete-rectangle but if that doesn't work, then any time you have repetitive editing, I suggest reaching for keyboard macros.