From e50e34a68930fb72d7f85880a64a477a94349470 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Mon, 20 Jul 2020 00:01:24 +0200 Subject: [PATCH] Implement org-return-follows-link --- .emacs.d/config.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.emacs.d/config.org b/.emacs.d/config.org index e490310..2856b8e 100644 --- a/.emacs.d/config.org +++ b/.emacs.d/config.org @@ -633,6 +633,7 @@ File auto-saves, backups, tramps. org-latex-pdf-process))) (setq org-directory (concat (getenv "HOME") "/documents/org")) + (setq org-return-follows-link t) #+END_SRC ** Tabs @@ -751,7 +752,7 @@ Functions that only use built-in Emacs functionality. (interactive) (let ((type (org-element-type (org-element-context)))) (pcase type - ('link (org-open-at-point)) + ('link (if org-return-follows-link (org-open-at-point) (evil-ret))) (_ (evil-ret)) )))