Browse Source

Implement org-return-follows-link

master
Riyyi 4 years ago
parent
commit
e50e34a689
  1. 3
      .emacs.d/config.org

3
.emacs.d/config.org

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

Loading…
Cancel
Save