Re: [O] Agenda add item, move point

2015-02-04 Thread Tory S. Anderson
I actually rarely visit the diary file; I do everything from the agenda view. 
In the rare cases I do need to visit the agenda file, I just switch buffers 
like usual (`C-x b RET`). 

John Kitchin  writes:

> How do you go back to the agenda from the diary file?
>
> Tory S. Anderson writes:
>
>> Fragment from my agenda.org; basically, it's almost completely just what is 
>> automatically created when you tell agenda to use an org file. It should be 
>> similar to what you have; yes, hitting tab or enter takes me to entries just 
>> fine.
>>
>> --8<---cut here---start->8---
>> * 2015
>> ** 2015-02 February
>> *** 2015-02-01 Sunday
>>  DONE Give John ride to church
>>  <2015-02-01 Sun 09:30>
>> --8<---cut here---end--->8---
>>
>> My problem is just trying to find my new entry (e.g. "Give John ride to 
>> church") in the actual agenda view after creating the item; rather than 
>> going there by default when I create the item, I have to i-search my point 
>> to it.
>>
>>
>> Eric S Fraga  writes:
>>
>>> On Wednesday,  4 Feb 2015 at 13:27, Tory S. Anderson wrote:
 Yes. I use the following (possibly relevant) code definition, which sets 
 my diary to agenda.org.

 (setq org-agenda-include-diary nil)
 ;; org-agenda
 (setq org-agenda-diary-file "~/emacs/agenda.org"
   org-special-ctrl-o nil
   org-agenda-span 'day)
>>>
>>> Ah, yes, sorry.  You said this in another response.
>>>
>>> Maybe post a snippet from your agenda.org file?
>>>
>>> In my case, my diary file is in date-tree format and the entries are
>>> inserted in the current day's section.  More to the point, the entries
>>> appear in my agenda and all I have to do is RET or TAB to go to the
>>> entry in the diary file.
>
> --
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu



Re: [O] Agenda add item, move point

2015-02-04 Thread Eric S Fraga
On Wednesday,  4 Feb 2015 at 15:23, Tory S. Anderson wrote:

[...]

> My problem is just trying to find my new entry (e.g. "Give John ride
> to church") in the actual agenda view after creating the item; rather
> than going there by default when I create the item, I have to i-search
> my point to it.

Ah, I didn't understand before.  Okay, in this case, I don't know the
answer because I use sticky agenda views and so I need to explicitly
refresh to get the new entry to appear and, in that case, the cursor
will be at the top of the view.

Sorry I cannot help any further.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org 
release_8.3beta-764-ga1f540.dirty



Re: [O] Agenda add item, move point

2015-02-04 Thread John Kitchin
How do you go back to the agenda from the diary file?

Tory S. Anderson writes:

> Fragment from my agenda.org; basically, it's almost completely just what is 
> automatically created when you tell agenda to use an org file. It should be 
> similar to what you have; yes, hitting tab or enter takes me to entries just 
> fine.
>
> --8<---cut here---start->8---
> * 2015
> ** 2015-02 February
> *** 2015-02-01 Sunday
>  DONE Give John ride to church
>  <2015-02-01 Sun 09:30>
> --8<---cut here---end--->8---
>
> My problem is just trying to find my new entry (e.g. "Give John ride to 
> church") in the actual agenda view after creating the item; rather than going 
> there by default when I create the item, I have to i-search my point to it.
>
>
> Eric S Fraga  writes:
>
>> On Wednesday,  4 Feb 2015 at 13:27, Tory S. Anderson wrote:
>>> Yes. I use the following (possibly relevant) code definition, which sets my 
>>> diary to agenda.org.
>>>
>>> (setq org-agenda-include-diary nil)
>>> ;; org-agenda
>>> (setq org-agenda-diary-file "~/emacs/agenda.org"
>>>   org-special-ctrl-o nil
>>>   org-agenda-span 'day)
>>
>> Ah, yes, sorry.  You said this in another response.
>>
>> Maybe post a snippet from your agenda.org file?
>>
>> In my case, my diary file is in date-tree format and the entries are
>> inserted in the current day's section.  More to the point, the entries
>> appear in my agenda and all I have to do is RET or TAB to go to the
>> entry in the diary file.

--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] Agenda add item, move point

2015-02-04 Thread Tory S. Anderson
Fragment from my agenda.org; basically, it's almost completely just what is 
automatically created when you tell agenda to use an org file. It should be 
similar to what you have; yes, hitting tab or enter takes me to entries just 
fine. 

--8<---cut here---start->8---
* 2015
** 2015-02 February
*** 2015-02-01 Sunday
 DONE Give John ride to church
 <2015-02-01 Sun 09:30>
--8<---cut here---end--->8---

My problem is just trying to find my new entry (e.g. "Give John ride to 
church") in the actual agenda view after creating the item; rather than going 
there by default when I create the item, I have to i-search my point to it. 


Eric S Fraga  writes:

> On Wednesday,  4 Feb 2015 at 13:27, Tory S. Anderson wrote:
>> Yes. I use the following (possibly relevant) code definition, which sets my 
>> diary to agenda.org. 
>>
>> (setq org-agenda-include-diary nil)
>> ;; org-agenda
>> (setq org-agenda-diary-file "~/emacs/agenda.org"
>>   org-special-ctrl-o nil
>>   org-agenda-span 'day)
>
> Ah, yes, sorry.  You said this in another response.
>
> Maybe post a snippet from your agenda.org file?
>
> In my case, my diary file is in date-tree format and the entries are
> inserted in the current day's section.  More to the point, the entries
> appear in my agenda and all I have to do is RET or TAB to go to the
> entry in the diary file.



Re: [O] Agenda add item, move point

2015-02-04 Thread Eric S Fraga
On Wednesday,  4 Feb 2015 at 13:27, Tory S. Anderson wrote:
> Yes. I use the following (possibly relevant) code definition, which sets my 
> diary to agenda.org. 
>
> (setq org-agenda-include-diary nil)
> ;; org-agenda
> (setq org-agenda-diary-file "~/emacs/agenda.org"
>   org-special-ctrl-o nil
>   org-agenda-span 'day)

Ah, yes, sorry.  You said this in another response.

Maybe post a snippet from your agenda.org file?

In my case, my diary file is in date-tree format and the entries are
inserted in the current day's section.  More to the point, the entries
appear in my agenda and all I have to do is RET or TAB to go to the
entry in the diary file.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org 
release_8.3beta-750-gb6fce5.dirty



Re: [O] Agenda add item, move point

2015-02-04 Thread Tory S. Anderson
Yes. I use the following (possibly relevant) code definition, which sets my 
diary to agenda.org. 

--8<---cut here---start->8---
(setq org-agenda-include-diary nil)
;; org-agenda
(setq org-agenda-diary-file "~/emacs/agenda.org"
  org-special-ctrl-o nil
  org-agenda-span 'day)
--8<---cut here---end--->8---


 writes:

> Have you defined org-agenda-diary-file?



Re: [O] Agenda add item, move point

2015-02-04 Thread e.fraga
Have you defined org-agenda-diary-file?
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-717-gd36bd8.dirty



Re: [O] Agenda add item, move point

2015-02-04 Thread Tory S. Anderson
Your point is on the created entry? When I do `i d` the entry is created 
somewhere down in the midst of my big list, and I have to use C-s to search for 
it and then I add things (such as with `t` for todo, `C-d` for deadline, `>` 
for additional time details). The trouble is finding it in the list, which 
seems to require something like `C-s` and searching for some of the text I just 
entered. 

I'm using Org-mode version 8.2.10 (8.2.10-30-gca21b7-elpa). I'm also not using 
regular diary, but the following (perhaps relevant?). I would LOVE to have my 
point automatically go to the newly created item, as yours seems to. 

--8<---cut here---start->8---
(setq org-agenda-include-diary nil)
;; org-agenda
(setq org-agenda-diary-file "~/emacs/agenda.org"
  org-special-ctrl-o nil
  org-agenda-span 'day)
--8<---cut here---end--->8---


John Kitchin  writes:

> This sounds interesting, but I don't understand what you are trying to
> do.
>
> In my agenda, when I press `i d` i get a new diary entry, and the point
> is on that entry. But it is a diary entry with no todo, and no new org
> entry. Do you do something else for that?
>
> Tory S. Anderson writes:
>
>> I plan out my days in the agenda using `i d` (org-agenda-diary-entry). I 
>> then move to the newly added entry to edit todo status, the hour of the 
>> item, deadlines, tags, and schedules. This would be tremendously facilitated 
>> if point automatically moved to the newly created item, rather than my 
>> having to search through my lengthy list of items to find the new entry. How 
>> can I implement this, and shouldn't it be a default?
>
> --
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu



Re: [O] Agenda add item, move point

2015-02-04 Thread John Kitchin
This sounds interesting, but I don't understand what you are trying to
do.

In my agenda, when I press `i d` i get a new diary entry, and the point
is on that entry. But it is a diary entry with no todo, and no new org
entry. Do you do something else for that?

Tory S. Anderson writes:

> I plan out my days in the agenda using `i d` (org-agenda-diary-entry). I then 
> move to the newly added entry to edit todo status, the hour of the item, 
> deadlines, tags, and schedules. This would be tremendously facilitated if 
> point automatically moved to the newly created item, rather than my having to 
> search through my lengthy list of items to find the new entry. How can I 
> implement this, and shouldn't it be a default?

--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu