From: Maurizio Vitale <mav@cuma.i-did-not-set--mail-host-address--so-tickle-me>
To: emacs-orgmode@gnu.org
Subject: [babel] using tramp when tangling
Date: Wed, 17 Mar 2010 14:39:43 -0400 [thread overview]
Message-ID: <87tyserdw0.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me> (raw)
I'd find useful to use tramp syntax in the :tangle specification.
In my case it would be to specify sudo when tangling config files that
are supposed to go to areas not writable by the user running Emacs.
Something like:
#+begin_src sh :tangle /sudo::/etc/my_config_file
...
#+end_src
other people might be interested in remote access to tangle targets.
Is there a way to achieve the above?
If I try to tangle the above, I get something along the lines that
"tramp cannot append to file". Would it be possible to have org-babel to
(optionally) tangle to a buffer and then save to file in one go?
Thanks a lot for the excellent addition to org-mode.
Maurizio
next reply other threads:[~2010-03-17 17:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-17 18:39 Maurizio Vitale [this message]
2010-03-17 19:57 ` [babel] using tramp when tangling Rémi Vanicat
2010-03-18 1:08 ` Dan Davison
2010-03-17 20:06 ` Dan Davison
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tyserdw0.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me \
--to=mav@cuma.i-did-not-set--mail-host-address--so-tickle-me \
--cc=emacs-orgmode@gnu.org \
--cc=maurizio.vitale@polymath-solutions.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).