emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Rainer Stengele
Subject: Re: [O] How to know in elisp if I am in the agenda ..
Date: Thu, 11 Apr 2013 15:58:24 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4

Am 11.04.2013 14:42, schrieb Tassilo Horn:
> Thorsten Jolitz <address@hidden> 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))
>> `------------------------------------------------
>>
>> gives t when called from inside the agenda.
> 
> Better
> 
>   (string-equal org-agenda-buffer-name (buffer-name))
> 
> or even better
> 
>   (eq major-mode 'org-agenda-mode)
> 
> Bye,
> Tassilo
> 
> 
> 
Tassilo,

that works perfect and my function also does now!
Exciting!

Thanks, Rainer




reply via email to

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