[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Re: agenda view opening multiple buffers
From: |
Manish |
Subject: |
Re: [O] Re: agenda view opening multiple buffers |
Date: |
Mon, 28 Mar 2011 00:25:49 +0530 |
On Sun, Mar 27, 2011 at 8:21 PM, Julian Burgos wrote:
> Thanks. Using x is good enough for now. I´ll explore also Michael´s
> suggestions. It would be good to have the agenda open in a buffer
> without having all the agenda files opened too.
>
Following code should do what you want (I think).
#+begin_src emacs-lisp
;; function code copied from definition of org-agenda-exit
(add-hook 'org-finalize-agenda-hook
(lambda ()
(interactive)
(org-release-buffers org-agenda-new-buffers)
(setq org-agenda-new-buffers nil)))
#+end_src
HTH
--
Manish
> On Sun, Mar 27, 2011 at 2:21 PM, Michael Markert
> <address@hidden> wrote:
>> On 27 Mar 2011, Bernt Hansen wrote:
>>> Julian Burgos <address@hidden> 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
>>
>
>
>
> --
> Julian Mariano Burgos
> Hafrannsóknastofnunin/Marine Research Institute
> Skúlagata 4, 121 ReykjavÃk, Iceland
> SÃmi/Telephone : +354-5752037
> BréfsÃmi/Telefax: +354-5752001
> Netfang/Email: address@hidden, address@hidden
>
>
- [O] agenda view opening multiple buffers, Julian Burgos, 2011/03/27
- [O] Re: agenda view opening multiple buffers, Bernt Hansen, 2011/03/27
- Re: [O] Re: agenda view opening multiple buffers, Michael Markert, 2011/03/27
- Re: [O] Re: agenda view opening multiple buffers, Julian Burgos, 2011/03/27
- Re: [O] Re: agenda view opening multiple buffers,
Manish <=
- Re: [O] Re: agenda view opening multiple buffers, Carsten Dominik, 2011/03/28
- Re: [O] Re: agenda view opening multiple buffers, Manish, 2011/03/28
- Re: [O] Re: agenda view opening multiple buffers, Carsten Dominik, 2011/03/28
- [O] Re: agenda view opening multiple buffers, Matt Lundin, 2011/03/30