From: Bernt Hansen <bernt@norang.ca>
To: knubee <knubee@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: tags/search on specific files
Date: Sun, 09 Jan 2011 06:25:26 -0500 [thread overview]
Message-ID: <874o9i9v4p.fsf@norang.ca> (raw)
In-Reply-To: <loom.20110109T063354-838@post.gmane.org> (knubee@gmail.com's message of "Sun, 9 Jan 2011 05:58:41 +0000 (UTC)")
knubee <knubee@gmail.com> writes:
> i would like to use some org-mode functionality for linking,
> tagging, and searching files that are not specified in the
> org-mode variables of .emacs file.
>
> i thought that i would be able to create a file, work on it in
> org-mode to create links and tags, and then be able to follow
> those links and search on those tags. after working on such a
> file, linking works fine. but although running "C-c \" [tag]
> does "highlight" lines that have the tag, it also displays all
> the other items. (by contrast, "C-c a m" [tag] will display only
> the specific tagged items for the agenda file(s) specified in
> .emacs)
>
> is there a way to do this that i am missing? either by providing
> a file name as an argument or some other command that will return
> such a view for the active buffer. (one reason i don't want to
> add the specific file to the list of files that org-mode
> automatically tracks is that i want to restrict my searching of
> tags to specific files. but maybe i am not thinking about this
> the right way.)
>
> thanks.
Hi knubee,
As long as your file is in org-mode that should work fine. You can run
an agenda just on the current file in multiple ways:
C-c a 1 m
will run the tags match command on the current file only
If you want to use multiple agenda commands you can enable the agenda
restriction lock as follows
- on the first line of an org-mode file (before the first heading) do
C-c C-x <
You do this on a #+STARTUP: line or on a blank line before the first
heading
All subsequent agenda commands will only consider this one file until
you remove the restriction lock with C-c C-x >
HTH,
Bernt
next prev parent reply other threads:[~2011-01-09 11:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-09 5:58 tags/search on specific files knubee
2011-01-09 11:25 ` Bernt Hansen [this message]
2011-01-09 12:21 ` knubee
2011-01-09 18:44 ` Matt Lundin
2011-01-09 22:55 ` knubee
2011-01-09 23:08 ` Carsten Dominik
2011-01-15 9:03 ` knubee
2011-01-15 19:00 ` Memnon Anon
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=874o9i9v4p.fsf@norang.ca \
--to=bernt@norang.ca \
--cc=emacs-orgmode@gnu.org \
--cc=knubee@gmail.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 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.