emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] open at category bug?


From: Richard G Riley
Subject: Re: [Orgmode] open at category bug?
Date: Thu, 20 Mar 2008 11:07:28 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux)

Carsten Dominik <address@hidden> 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.
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode




reply via email to

[Prev in Thread] Current Thread [Next in Thread]