From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julian Burgos Subject: Re: Re: agenda view opening multiple buffers Date: Sun, 27 Mar 2011 14:51:31 +0000 Message-ID: References: <87ei5sr7gj.fsf@norang.ca> <878vw0y78z.wl%markert.michael@googlemail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=49352 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3rJX-0004fo-LI for emacs-orgmode@gnu.org; Sun, 27 Mar 2011 10:51:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3rJW-0004wH-1b for emacs-orgmode@gnu.org; Sun, 27 Mar 2011 10:51:35 -0400 Received: from mail-qy0-f176.google.com ([209.85.216.176]:56545) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3rJV-0004vx-UP for emacs-orgmode@gnu.org; Sun, 27 Mar 2011 10:51:34 -0400 Received: by qyk30 with SMTP id 30so1897413qyk.0 for ; Sun, 27 Mar 2011 07:51:32 -0700 (PDT) In-Reply-To: <878vw0y78z.wl%markert.michael@googlemail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Markert Cc: Bernt Hansen , emacs-orgmode@gnu.org Thanks. Using x is good enough for now. I=B4ll explore also Michael=B4s suggestions. It would be good to have the agenda open in a buffer without having all the agenda files opened too. On Sun, Mar 27, 2011 at 2:21 PM, Michael Markert wrote: > On 27 Mar 2011, Bernt Hansen wrote: >> Julian Burgos writes: >> >>> Dear list, >>> >>> When asking for an agenda view (C-c a), org mode opens all files in >>> the agenda list in individual buffers. =A0I keep lots of files in my >>> list (one per project), so having all those buffers open each time I >>> visit my agenda is pretty annoying. =A0Is there a way to make org mode >>> not open each file in a buffer (or close the buffers after reading the >>> file) when asking for an agenda view? >>> Thanks, >>> >>> Julian >> >> Hi Julian, >> >> I think 'e' in the agenda is supposed to exit the agenda and close >> automatically opened agenda files. > > It's `x'. But I think Julian meant that the buffers should be closed > automatically and not open at least as long as the agenda is shown. > > For the original issue I think the following would help: > #+begin_src emacs-lisp > (defun project-agenda (&optional args keys restriction) > =A0(interactive) > =A0(let ((org-agenda-files '("~/project-file1" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"~/project-file2")= )) > =A0 =A0(org-agenda args keys restriction))) > #+end_src > > Or pressing `<' in the prompt buffer, for more see (describe-function > 'org-agenda) > > Michael > --=20 Julian Mariano Burgos Hafranns=F3knastofnunin/Marine Research Institute Sk=FAlagata 4, 121 Reykjav=EDk, Iceland S=EDmi/Telephone : +354-5752037 Br=E9fs=EDmi/Telefax:=A0 +354-5752001 Netfang/Email: julian@hafro.is, jmburgos@uw.edu