From: Sebastian <sebastian_rose@gmx.de>
To: Eraldo Helal <eraldo@eraldo.at>
Cc: Bernt Hansen <bernt@norang.ca>, Org-Mode <emacs-orgmode@gnu.org>,
Carsten Dominik <carsten.dominik@gmail.com>
Subject: Re: Re: add a whole directory as one item to refile targets
Date: Sat, 17 Oct 2009 14:59:22 +0200 [thread overview]
Message-ID: <1255784362.11967.16.camel@beteigeuze> (raw)
In-Reply-To: <938fae2d0910170358m67c6f078w2cc481a9ed0035a2@mail.gmail.com>
Am Samstag, den 17.10.2009, 12:58 +0200 schrieb Eraldo Helal:
> Thank you very much for sharing this!
> That seems to be more than what I need.
>
> A waaay easier solution would be to be able to refile/save a headline
> to a non-predefined target.
> > just like it is the case with "find file" (C-x C-f)
> in other words: being able to "find a file" to use as refile target
> (if it does not exist > create)
>
> Wouldn't that be an awesome option?
Yes.
This does so. Note: there's no testing for the '*.org'
extension and writability...
(defun sr-add-file-to-org-refile-targets ( file )
"Add a single file to org-refile targets. Eventually create it."
(interactive "FNew refile target: ")
(when (not (file-exists-p file))
(access-file file))
(setq sr-org-refile-targets (append (list file)
sr-org-refile-targets))
(message "org-refile-targets: \n%s" sr-org-refile-targets))
HTH
Sebastian
prev parent reply other threads:[~2009-10-17 12:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-04 22:30 add a whole directory as one item to refile targets Eraldo Helal
2009-10-08 7:02 ` Carsten Dominik
2009-10-08 8:17 ` Syntax coloring not automatic Helge A. Gudmundsen
2009-10-10 21:48 ` add a whole directory as one item to refile targets Eraldo Helal
2009-10-10 22:06 ` Bernt Hansen
2009-10-12 13:48 ` Eraldo Helal
2009-10-12 14:15 ` Carsten Dominik
2009-10-17 13:19 ` Eraldo Helal
2009-10-12 16:47 ` Sebastian
2009-10-17 10:58 ` Eraldo Helal
2009-10-17 12:59 ` Sebastian [this message]
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=1255784362.11967.16.camel@beteigeuze \
--to=sebastian_rose@gmx.de \
--cc=bernt@norang.ca \
--cc=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=eraldo@eraldo.at \
/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).