From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Markert Subject: Re: Re: agenda view opening multiple buffers Date: Sun, 27 Mar 2011 16:21:00 +0200 Message-ID: <878vw0y78z.wl%markert.michael@googlemail.com> References: <87ei5sr7gj.fsf@norang.ca> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Sun_Mar_27_16:21:00_2011-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=56800 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3qq3-0002r4-SX for emacs-orgmode@gnu.org; Sun, 27 Mar 2011 10:21:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3qq0-0006Vk-Ad for emacs-orgmode@gnu.org; Sun, 27 Mar 2011 10:21:06 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:60613) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3qq0-0006VD-5B for emacs-orgmode@gnu.org; Sun, 27 Mar 2011 10:21:04 -0400 Received: by fxm18 with SMTP id 18so2538289fxm.0 for ; Sun, 27 Mar 2011 07:21:03 -0700 (PDT) In-Reply-To: <87ei5sr7gj.fsf@norang.ca> 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: Bernt Hansen Cc: Julian Burgos , emacs-orgmode@gnu.org --pgp-sign-Multipart_Sun_Mar_27_16:21:00_2011-1 Content-Type: text/plain; charset=US-ASCII 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. I 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. Is 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) (interactive) (let ((org-agenda-files '("~/project-file1" "~/project-file2"))) (org-agenda args keys restriction))) #+end_src Or pressing `<' in the prompt buffer, for more see (describe-function 'org-agenda) Michael --pgp-sign-Multipart_Sun_Mar_27_16:21:00_2011-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJNj0fMAAoJEHHMVUK0UjKVi18P/3nEUvSocXYLFQbYZI6i7AYA AynC0UYocAorYJaIr/Db/+VKSEVhosW3gbwJMzbUSzgNirdD36eTDdkzqsQ9QFH9 EmG9qVqtKU7wdCL4bV4KoMMoJDvlnX4wZ6cxOgpySXSqxsliyErhQ0KouzcWTbme RB4Vktqpr9RIlBF1PkQ1O3hjAgXedtAMfhXMKVHV0T+juoD5IHI+AuvwvWExSEca oKWJ0KS4YXeGtHYtrsULeStK9nWFKPb9HpRv5uoo0PNHnE8rdrBA6MhzcS7c51Gn Q1zUcAmMYN+cB+KbO3LpikR5IiNkns+Mz7gqRRZRifSIZv3uLcJ2otdaptCN/VmV 1EtSS9ZxUoQbjftnLheSLG4i8xie6l5WTmJRVtq3VnKiiV0izd6PyHTB94NKziTZ awq66pyz92VXp1KKIemuvV92TRyzqTKomj8siAYmkf+UhnQWFEN7hHYvpLDHpMe1 JY6o0V++QLN67NbVgy5/jxf7woPm+WRvqXHzDn3K1Yeq6RSfICnF+TWCDV9MauTt GjwxoU148hJPeaO+DFbQirIeKf130ZZymvQLq0c0iX89p9U+STJju3HZZro1vxkB +0TUxxF65A3f11n842Tf/5SYJIlL+5JIBcCzdR8pm/fScrF5FOQDHeFjM1Ss97Pf ifX5/M/IZ5nYtnB8UCLQ =nYEC -----END PGP SIGNATURE----- --pgp-sign-Multipart_Sun_Mar_27_16:21:00_2011-1--