[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/cape d69114e8bd 3/3: cape-file: Support org links in ev
From: |
ELPA Syncer |
Subject: |
[elpa] externals/cape d69114e8bd 3/3: cape-file: Support org links in every buffer |
Date: |
Mon, 6 Jun 2022 07:57:20 -0400 (EDT) |
branch: externals/cape
commit d69114e8bd44d08c30b3374f4d7032d73621f1c6
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
cape-file: Support org links in every buffer
---
cape.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cape.el b/cape.el
index ccf1780468..94ebd2680a 100644
--- a/cape.el
+++ b/cape.el
@@ -248,8 +248,8 @@ If INTERACTIVE is nil the function acts like a Capf."
(bounds (cape--bounds 'filename))
(non-essential t)
(file (buffer-substring (car bounds) (cdr bounds)))
- (org (and (derived-mode-p 'org-mode)
- (string-prefix-p "file:" file))))
+ ;; Support org links globally, see `org-open-at-point-global'.
+ (org (string-prefix-p "file:" file)))
(when org (setf (car bounds) (+ 5 (car bounds))))
(when (or org
(not cape-file-directory-must-exist)