jrblevin / markdown-mode

Emacs Markdown Mode
http://jblevins.org/projects/markdown-mode/
GNU General Public License v3.0
875 stars 160 forks source link

Push mark before jumping to footnote #793

Closed slotThe closed 10 months ago

slotThe commented 10 months ago

Description

When inserting a (small) footnote, it is often very convenient to jump back to the main text with C-u C-SPC instead of using markdown-footnote-return. However, this can only be done if markdown-insert-footnote pushes to the mark ring before jumping, so do that.

Type of Change

Checklist

syohex commented 10 months ago

org-footnote-new sets marker like this so I think this behavior looks good.