emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/markdown-mode d917e71 1/8: extend markdown-do to follow li


From: ELPA Syncer
Subject: [nongnu] elpa/markdown-mode d917e71 1/8: extend markdown-do to follow links
Date: Thu, 21 Oct 2021 20:57:50 -0400 (EDT)

branch: elpa/markdown-mode
commit d917e71a51044e8b637ba05cbfe5fb74c3ec99c9
Author: Eric Drechsel <eric@pdxhub.org>
Commit: Eric Drechsel <eric@pdxhub.org>

    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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]