diff options
author | Case Duckworth | 2021-08-20 17:28:09 -0500 |
---|---|---|
committer | Case Duckworth | 2021-08-20 17:28:09 -0500 |
commit | ca44456488c129d859ff2609a9b754b2c8fb217f (patch) | |
tree | 20ad88c54cc9b01bf4faa7ddfb2ca23674316813 /lisp | |
parent | Better handle prefix links in acdw/org-return-dwim (diff) | |
download | emacs-ca44456488c129d859ff2609a9b754b2c8fb217f.tar.gz emacs-ca44456488c129d859ff2609a9b754b2c8fb217f.zip |
Follow user preference in `org-return-follows-link'
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/acdw-org.el | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lisp/acdw-org.el b/lisp/acdw-org.el index de2bafc..2f798d9 100644 --- a/lisp/acdw-org.el +++ b/lisp/acdw-org.el | |||
@@ -52,13 +52,10 @@ appropriate. In tables, insert a new row or end the table." | |||
52 | (_ (newline default))) | 52 | (_ (newline default))) |
53 | (cond | 53 | (cond |
54 | ;; Act depending on context around point. | 54 | ;; Act depending on context around point. |
55 | 55 | ((and org-return-follows-link | |
56 | ;; NOTE: I prefer RET to not follow links, but by uncommenting this block, links will be | 56 | (eq 'link (car (org-element-context)))) |
57 | ;; followed. | 57 | ;; Link: Open it. |
58 | 58 | (org-open-at-point-global)) | |
59 | ;; ((eq 'link (car (org-element-context))) | ||
60 | ;; ;; Link: Open it. | ||
61 | ;; (org-open-at-point-global)) | ||
62 | 59 | ||
63 | ((org-at-heading-p) | 60 | ((org-at-heading-p) |
64 | ;; Heading: Move to position after entry content. | 61 | ;; Heading: Move to position after entry content. |