[-- Attachment #1: Type: text/plain, Size: 336 bytes --] Hi guys, I added my gtd.org_archive to the agenda as a mean of getting a timelog of tasks I complete. Recently, and I don't know why, it started to throw the following error when I try to access any of the agenda views: if: Agenda file ~/org/gtd.org_archive is not in `org-mode' Does anyone know why this happens? Thanks, Marcelo. [-- Attachment #2: Type: text/html, Size: 465 bytes --]
Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:
> Hi guys,
>
> I added my gtd.org_archive to the agenda as a mean of getting a
> timelog of tasks I complete. Recently, and I don't know why, it
> started to throw the following error when I try to access any of the
> agenda views:
>
> if: Agenda file ~/org/gtd.org_archive is not in `org-mode'
>
> Does anyone know why this happens?
>
> Thanks,
>
> Marcelo.
I'm not sure why you are getting that but adding the archive to your
agenda should _not_ be necessary. You can instruct the agenda to
include archived files using 'V A' in the agenda.
Does your auto-mode-alist specify .org_archive files for org-mode?
I have the following:
(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\)$"
. org-mode))
HTH,
Bernt
Marcelo de Moraes Serpa <celoserpa@gmail.com> wrote:
> I added my gtd.org_archive to the agenda as a mean of getting a
> timelog of tasks I complete. Recently, and I don't know why, it
> started to throw the following error when I try to access any of the
> agenda views:
>
> if: Agenda file ~/org/gtd.org_archive is not in `org-mode'
>
> Does anyone know why this happens?
>
You probably changed something (a typo of some sort: deleting or adding a quote,
or a paren) - who knows? A backtrace might help to narrow it down.
Nick
On 29.11.2011, at 18:39, Marcelo de Moraes Serpa wrote:
> Hi guys,
>
> I added my gtd.org_archive to the agenda as a mean of getting a timelog of tasks I complete. Recently, and I don't know why, it started to throw the following error when I try to access any of the agenda views:
>
> if: Agenda file ~/org/gtd.org_archive is not in `org-mode'
>
> Does anyone know why this happens?
The first line of that file should look like
-*- mode: org -*-
does it?
- Carsten
[-- Attachment #1: Type: text/plain, Size: 797 bytes --] Thank you all, The problem was that this file shouldn't actually be part of the agenda. If I really wanted to, I'd have to add the mode to it, like Carnsten and Bernt suggested. Cheers, Marcelo. On Tue, Nov 29, 2011 at 12:36 PM, Carsten Dominik <carsten.dominik@gmail.com > wrote: > > On 29.11.2011, at 18:39, Marcelo de Moraes Serpa wrote: > > > Hi guys, > > > > I added my gtd.org_archive to the agenda as a mean of getting a timelog > of tasks I complete. Recently, and I don't know why, it started to throw > the following error when I try to access any of the agenda views: > > > > if: Agenda file ~/org/gtd.org_archive is not in `org-mode' > > > > Does anyone know why this happens? > > The first line of that file should look like > > -*- mode: org -*- > > > does it? > > - Carsten [-- Attachment #2: Type: text/html, Size: 1308 bytes --]