From: Alexander Baier <lexi.baier@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [Refile] Make agenda-files and current file targets
Date: Wed, 30 Oct 2013 13:44:05 +0100 [thread overview]
Message-ID: <87vc0f2aju.fsf@gmail.com> (raw)
Hello,
I am trying to configure my refiling targets in a way, that allows me to
refile to any of the files in org-agenda-files, as well as to the file
displayed by the current buffer, if it is not included in
org-agenda-files. Additionally, I want the headings in agenda-files to
be included up to level 4, but of current file every heading should be
considered a target.
This is what I came up with so far:
----------------------------------------------------------------
(setq org-refile-targets
(quote ((org-agenda-files :maxlevel . 4)
(#'(lambda ()
(unless (member (buffer-file-name) org-agenda-files)
(buffer-file-name)) :regexp . ".*")))))
----------------------------------------------------------------
The problem here is, that the lambda evaluates to nil when
(buffer-file-name) is a member of org-agenda-files. And this nil in turn
isn't anything org-refile understands (Upon C-c C-w I get "Bad refiling
target description nil").
Does anyone know how to go about this and can give me soem pointers?
Regards,
Alex
next reply other threads:[~2013-10-30 12:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-30 12:44 Alexander Baier [this message]
2013-10-30 16:44 ` [Refile] Make agenda-files and current file targets Alexander Baier
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=87vc0f2aju.fsf@gmail.com \
--to=lexi.baier@gmail.com \
--cc=emacs-orgmode@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 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).