emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Agenda file is not in `org-mode'
@ 2013-04-23 18:07 Marcelo de Moraes Serpa
  2013-04-23 18:10 ` Samuel Wales
  0 siblings, 1 reply; 3+ messages in thread
From: Marcelo de Moraes Serpa @ 2013-04-23 18:07 UTC (permalink / raw)
  To: Org Mode

[-- Attachment #1: Type: text/plain, Size: 319 bytes --]

Hey guys,

When trying to show up the archived items in the agenda view, I'm getting
this message:

"Agenda file /Users/fullofcaffeine/org/gtd/gtd.org_archive is not in
`org-mode'"

To fix it, I have to manually open gtd.org_archive, and "M-x org-mode" it.

Any ideas on why this happens?

Thanks in advance,

Marcelo.

[-- Attachment #2: Type: text/html, Size: 603 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Agenda file is not in `org-mode'
  2013-04-23 18:07 Agenda file is not in `org-mode' Marcelo de Moraes Serpa
@ 2013-04-23 18:10 ` Samuel Wales
  2013-04-23 18:39   ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Wales @ 2013-04-23 18:10 UTC (permalink / raw)
  To: Marcelo de Moraes Serpa; +Cc: Org Mode

Hi Marcelo,

Did you try (add-to-list 'auto-mode-alist '("\\.org_archive$" . org-mode))?

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY
can get it.  There is NO hope without action.  This means YOU.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Agenda file is not in `org-mode'
  2013-04-23 18:10 ` Samuel Wales
@ 2013-04-23 18:39   ` Carsten Dominik
  0 siblings, 0 replies; 3+ messages in thread
From: Carsten Dominik @ 2013-04-23 18:39 UTC (permalink / raw)
  To: Samuel Wales; +Cc: Org Mode, Marcelo de Moraes Serpa


On 23.4.2013, at 20:10, Samuel Wales <samologist@gmail.com> wrote:

> Hi Marcelo,
> 
> Did you try (add-to-list 'auto-mode-alist '("\\.org_archive$" . org-mode))?

This should work.

Also, if Org is creating a new archive file, it should automatically insert a line like


    #    -*- mode: org -*-

at the beginning of the file, which will force org-mode for
this file.  Maybe you created this archive file in a different way?

- Carsten

> 
> Samuel
> 
> -- 
> The Kafka Pandemic: http://thekafkapandemic.blogspot.com
> 
> The disease DOES progress.  MANY people have died from it.  ANYBODY
> can get it.  There is NO hope without action.  This means YOU.
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-23 18:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-23 18:07 Agenda file is not in `org-mode' Marcelo de Moraes Serpa
2013-04-23 18:10 ` Samuel Wales
2013-04-23 18:39   ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).