branch: elpa/markdown-mode
commit d917e71a51044e8b637ba05cbfe5fb74c3ec99c9
Author: Eric Drechsel <[email protected]>
Commit: Eric Drechsel <[email protected]>
extend markdown-do to follow links
motivation: spacemacs and others bind <RET> to
markdown-do in evil normal mode. with this change links
can also be followed with enter.
---
markdown-mode.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/markdown-mode.el b/markdown-mode.el
index 2b0794c..64acb15 100644
--- a/markdown-mode.el
+++ b/markdown-mode.el
@@ -8222,6 +8222,9 @@ Jumps between reference links and definitions; between
footnote
markers and footnote text."
(interactive)
(cond
+ ;; Link
+ ((or (markdown-link-p) (markdown-wiki-link-p))
+ (markdown-follow-thing-at-point nil))
;; Footnote definition
((markdown-footnote-text-positions)
(markdown-footnote-return))