Re: [O] How to know in elisp if I am in the agenda ..

2013-04-11 Thread Rainer Stengele
Am 11.04.2013 14:42, schrieb Tassilo Horn: > Thorsten Jolitz writes: > >>> Please help. Where could I find information/docs for something like >>> "How to determine when I am in agenda view"? >> >> , >> | M-: (string-equal "*Org Agenda*" (buffer-nam

Re: [O] How to know in elisp if I am in the agenda ..

2013-04-11 Thread Tassilo Horn
Thorsten Jolitz writes: >> Please help. Where could I find information/docs for something like >> "How to determine when I am in agenda view"? > > , > | M-: (string-equal "*Org Agenda*" (buffer-name)) > `-

Re: [O] How to know in elisp if I am in the agenda ..

2013-04-11 Thread Thorsten Jolitz
Rainer Stengele writes: > Please help. Where could I find information/docs for something like > "How to determine when I am in agenda view"? , | M-: (string-equal "*Org Agenda*" (buffer-name)) ` give

[O] How to know in elisp if I am in the agenda ..

2013-04-11 Thread Rainer Stengele
Hi, I try to automate clock in and clock out operations. I have put something like this together: (defun rst/clock-in-out () (interactive) (when org-agenda-info ;; (org-agenda-switch-to)) (org-agenda-goto)) (show-subtree) (org-clock-in) (org-clock-out) (unless (org-at-heading