From: Richard G Riley <rileyrgdev@googlemail.com>
To: Carsten Dominik <dominik@science.uva.nl>
Cc: org-mode <emacs-orgmode@gnu.org>,
Richard G Riley <rileyrgdev@googlemail.com>
Subject: Re: open at category bug?
Date: Thu, 20 Mar 2008 11:07:28 +0100 [thread overview]
Message-ID: <c0k5jxogin.fsf@richardriley.net> (raw)
In-Reply-To: <01FC92ED-68B8-46C9-9467-E82C48DCB7E3@science.uva.nl> (Carsten Dominik's message of "Thu, 20 Mar 2008 10:57:50 +0100")
Carsten Dominik <dominik@science.uva.nl> writes:
> If your files are in non-default locations, how is org-mode supposed
> to find "todo.org" etc?
Well the agenda does since it has a "org-agenda-files" variable (see
code snip below) - can org-mode not use something similar if not the
same? Similar to (setq gnus-home-directory "~/.emacs.d") any functions should
assume, if they are not fully qualified, that all files are below a
org-files-home-directory
or similar, I think. hard coding the full path in each
org-remember-template is not very tidy I find and I certainly avoid it
whenever I can.
> I guess it would be better fo give absolute file paths in
> org-remember-
> templates.
>
> Your trick of bringing up the agenda only woks by chance, if you are
> luck to be
> in the right directory with Emacs.
>
> - Carsten
>
> On Mar 19, 2008, at 4:24 PM, Richard G Riley wrote:
>
>>
>> Version 5.23a
>>
>> When I try to open at a certain category
>>
>> C-u C-M-r (prefix org-remember)
>>
>> then I get
>>
>> ,----
>> | Select template: [t] [n] [f] [l] [d] [e] [v] [R] [b] [s] [w] [r]
>> [j] [L] [x]
>> | org-go-to-remember-target: Target headline not found: Emacs
>> `----
>>
>> the first time IF I havent brought up the agenda first - my files
>> are in
>> non default locations. If I bring up the agenda first then there are
>> no
>> problems.
>>
>> ,----
>> | (setq org-agenda-files (quote ("~/.emacs.d/.org-files")))
>> | (setq org-default-notes-file "~/.emacs.d/.org-files/notes.org")
>>
>> *snip*
>>
>> |
>> | (setq org-remember-templates
>> | (quote (
>> | (?t "* TODO %?\n %u\n %i\n %a\n" "todo.org" "Tasks")
>> | (?n "* %U %?" "notes.org" "Notes")
>> | (?f "* %U %^{Title}\n %i\n %a\n" "todo.org" "FaceBook")
>> | (?l "* %U %^{Title}\n %i\n %a\n" "todo.org" "Linux")
>> | (?d "* %U %^{Title}\n %i\n %a\n" "todo.org" "Debian")
>> | (?e "* %U %^{Title}\n %i\n %a\n" "todo.org" "Emacs")
>> | (?v "* %U %^{Title}\n %i\n %a\n" "vocab.org" "Vocab")
>> | (?R "* %U %^{Title}\n %i\n %a\n" "register.org"
>> "Register")
>> | (?b "* %U %^{Title}\n %i\n %a\n" "blog.org" "Blog")
>> | (?w "* %U %^{Title}\n %i\n %a\n" "webs.org" "Webs")
>> | (?r "* %U %^{Title}\n %i\n %a\n" "todo.org" "Remember")
>> | (?j "* %U %^{Title}\n %i\n %a\n" "todo.org" "Journal")
>> | (?L "* %U %^{Title}\n %i\n %a\n" "todo.org" "Links")
>> | (?x "* %^{Title}\n %i\n %a\n" "todo.org" "Links")
>> | )
>> | )
>> | )
>> |
>> | (add-hook 'remember-mode-hook 'org-remember-apply-template)
>> | (define-key global-map [(control meta ?r)] 'org-remember)
>> `----
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2008-03-20 10:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-19 15:24 open at category bug? Richard G Riley
2008-03-20 9:57 ` Carsten Dominik
2008-03-20 10:07 ` Richard G Riley [this message]
2008-03-20 12:37 ` Carsten Dominik
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=c0k5jxogin.fsf@richardriley.net \
--to=rileyrgdev@googlemail.com \
--cc=dominik@science.uva.nl \
--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).