emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Richard G Riley <rileyrgdev@googlemail.com>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: open at category bug?
Date: Thu, 20 Mar 2008 13:37:44 +0100	[thread overview]
Message-ID: <E507EAF1-CF80-4374-A6A2-E9DDA63DDE4C@science.uva.nl> (raw)
In-Reply-To: <c0k5jxogin.fsf@richardriley.net>


On Mar 20, 2008, at 11:07 AM, Richard G Riley wrote:

>
> 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.


Hmm, well, ok, why not.

I fixed this, they are now interpreted relative to the value of the  
variable `org-directory'.

Thanks!

- Carsten

>
>
>
>> 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

      reply	other threads:[~2008-03-20 12:37 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
2008-03-20 12:37     ` Carsten Dominik [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=E507EAF1-CF80-4374-A6A2-E9DDA63DDE4C@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=rileyrgdev@googlemail.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).