[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/crux 20c0784 104/112: Add support for org-mode links to cr
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/crux 20c0784 104/112: Add support for org-mode links to crux-view-url |
Date: |
Wed, 11 Aug 2021 09:58:03 -0400 (EDT) |
branch: elpa/crux
commit 20c07848049716a0e1aa2560e23b5f4149f2a74f
Author: Trust me I am a doctor <pillule@riseup.net>
Commit: Bozhidar Batsov <bozhidar.batsov@gmail.com>
Add support for org-mode links to crux-view-url
---
crux.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/crux.el b/crux.el
index ca9d863..3fc313c 100644
--- a/crux.el
+++ b/crux.el
@@ -490,7 +490,9 @@ When invoke with C-u, the newly created file will be
visited.
(defun crux-view-url ()
"Open a new buffer containing the contents of URL."
(interactive)
- (let* ((default (thing-at-point-url-at-point))
+ (let* ((default (if (eq major-mode 'org-mode)
+ (org-element-property :raw-link (org-element-context))
+ (thing-at-point-url-at-point)))
(url (read-from-minibuffer "URL: " default)))
(switch-to-buffer (url-retrieve-synchronously url))
(rename-buffer url t)
- [nongnu] elpa/crux 785dfba 095/112: crux-smart-open-line-above: Use crux-move-to-mode-line-start, (continued)
- [nongnu] elpa/crux 785dfba 095/112: crux-smart-open-line-above: Use crux-move-to-mode-line-start, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux c3b6138 107/112: Fixed extra line issue when duplicating, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 6c02dab 071/112: Fold a few long lists, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 9341c6b 072/112: Silence byte compiler, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 5395c06 076/112: New function: crux-find-user-custom-file, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 7569d26 085/112: Bump the copyright years, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 139eb6f 096/112: Add crux-kill-buffer-truename, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux fb648f0 099/112: Add missing autoload, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 95f5040 106/112: Update crux-transpose-window with other-window, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 3445e7e 109/112: Release 0.4.0, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 20c0784 104/112: Add support for org-mode links to crux-view-url,
ELPA Syncer <=
- [nongnu] elpa/crux 4ce9c4b 070/112: Fix a couple of docstrings, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 6958cb5 108/112: Update the changelog, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux e561eb4 111/112: Update the sponsorship methods, ELPA Syncer, 2021/08/11