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: Tassilo Horn
Subject: Re: [O] How to know in elisp if I am in the agenda ..
Date: Thu, 11 Apr 2013 14:42:46 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

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




reply via email to

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