Skip to content

INFO - Alternative solution for editing the markdown blocks  #28

@mbarton98

Description

@mbarton98

I wanted something like Org Mode's special edit for the markdown cells. I then found poporg while searching for a solution. It will auto detect the comment prefix to strip off when editing the text and then when you exit it puts the prefix back in with the updated text. This solves another problem for me outside of code-cells, so I prefer this over the triple quote solution for now. Below is how I configured the binding to be the same as org special edit but not conflict with it.

(use-package poporg
  :ensure t
  :bind
  (:map prog-mode-map
	("C-c '" . poporg-dwim)
	)
  (:map poporg-mode-map
	("C-c '" . poporg-dwim)
	)
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions