From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chao Lu Subject: How to call org-agenda with the parameter Date: Mon, 19 Jan 2015 16:50:16 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d044282acd28307050d084e0e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDKDF-0007wS-5r for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 16:50:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDKDE-0005EL-Fb for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 16:50:21 -0500 Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]:35088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDKDE-0005Dn-8B for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 16:50:20 -0500 Received: by mail-wg0-f41.google.com with SMTP id a1so11898164wgh.0 for ; Mon, 19 Jan 2015 13:50:17 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --f46d044282acd28307050d084e0e Content-Type: text/plain; charset=UTF-8 Hi all, I defined a few org-agenda custom set, where I could M-x org-agenda RET then press "1" to list all my active TODOs. And I'm trying to write a function when I could pop-up a buffer and show me all the active TODOs. I tried (org-agenda "1"), and it does not work, then what should be the right way to do that? (defun lch-recur () (interactive) (split-window-vertically) (lch-cowsay-fortune) (other-window 1) *(org-agenda "1")* ) Thanks, Chao --f46d044282acd28307050d084e0e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all,

I defined a few org-agenda c= ustom set, where I could M-x org-agenda RET then press "1" to lis= t all my active TODOs. And I'm trying to write a function when I could = pop-up a buffer and show me all the active TODOs. I tried (org-agenda "= ;1"), and it does not work, then what should be the right way to do th= at?

(defun lch-recur ()
=C2=A0 (interactive)
=C2=A0 (spl= it-window-vertically)
=C2=A0 (lch-cowsay-fortune)
=C2=A0 (other-windo= w 1)
=C2=A0 (org-agenda "1")
)

Tha= nks,

Chao
--f46d044282acd28307050d084e0e--