From: Eduardo Cavazos <wayo.cavazos@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Remote files via http
Date: Sat, 11 Apr 2009 03:17:11 -0700 (PDT) [thread overview]
Message-ID: <da9b2f03-0065-4bb9-ae39-389bbd8f5354@e24g2000vbe.googlegroups.com> (raw)
In-Reply-To: 2dc34578-77b6-431d-b8f4-dda886952b68@l2g2000vba.googlegroups.com
On Apr 11, 4:40 am, Eduardo Cavazos <wayo.cava...@gmail.com> wrote:
> Yet another approach would be a special link type in org-mode.
Here we go...
(require 'org)
(defun org-netorg-open (path)
(shell-command
(format "wget %s %s http://%s"
"--directory-prefix=/tmp/netorg"
"--force-directories"
path))
(find-file (format "/tmp/netorg/%s" path)))
(org-add-link-type "netorg" 'org-netorg-open)
Bam! :-)
With that, a link such as:
[[netorg:www.xyz.com/abc.org][The ABCs]]
if followed will "do the right thing". I.e. the remote document will
be retrieved and displayed. The document is stored locally in a
"cache" at:
"/tmp/netorg/www.xyz.com/abc.org"
Ed
next prev parent reply other threads:[~2009-04-11 10:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-11 9:40 Remote files via http Eduardo Cavazos
2009-04-11 10:17 ` Eduardo Cavazos [this message]
2009-04-12 11:54 ` Nikos Apostolakis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=da9b2f03-0065-4bb9-ae39-389bbd8f5354@e24g2000vbe.googlegroups.com \
--to=wayo.cavazos@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.