Implement org-return-follows-link
This commit is contained in:
+2
-1
@@ -633,6 +633,7 @@ File auto-saves, backups, tramps.
|
|||||||
org-latex-pdf-process)))
|
org-latex-pdf-process)))
|
||||||
|
|
||||||
(setq org-directory (concat (getenv "HOME") "/documents/org"))
|
(setq org-directory (concat (getenv "HOME") "/documents/org"))
|
||||||
|
(setq org-return-follows-link t)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Tabs
|
** Tabs
|
||||||
@@ -751,7 +752,7 @@ Functions that only use built-in Emacs functionality.
|
|||||||
(interactive)
|
(interactive)
|
||||||
(let ((type (org-element-type (org-element-context))))
|
(let ((type (org-element-type (org-element-context))))
|
||||||
(pcase type
|
(pcase type
|
||||||
('link (org-open-at-point))
|
('link (if org-return-follows-link (org-open-at-point) (evil-ret)))
|
||||||
(_ (evil-ret))
|
(_ (evil-ret))
|
||||||
)))
|
)))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user