[O] Agenda file is not in `org-mode'

2013-04-23 Thread Marcelo de Moraes Serpa
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.


Re: [O] Agenda file is not in `org-mode'

2013-04-23 Thread Samuel Wales
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.



Re: [O] Agenda file is not in `org-mode'

2013-04-23 Thread Carsten Dominik

On 23.4.2013, at 20:10, Samuel Wales samolog...@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.
 




Re: [O] Agenda file for the following X days

2011-06-07 Thread Detlef Steuer
On Mon, 6 Jun 2011 23:10:12 -0500
Ugur Ozdemir uozde...@go.wustl.edu wrote:

 Hi,
 
 As a novice I was wondering if there is an easy way of creating an agenda 
 file for a certain number of days starting from today. I know I can do some 
 custom agenda commands if I do some study but I guess I am trying to free 
 ride here.
 

And you get it, of course!

(setq org-agenda-ndays 35)

Where 35 is my number of days I like to look ahead.

Bye
Detlef


 Cheers,
 
 -- 
 Ugur Ozdemir
 
 





Re: [O] Agenda file for the following X days

2011-06-07 Thread Michael Markert
On 7 Jun 2011, Detlef Steuer wrote:

 On Mon, 6 Jun 2011 23:10:12 -0500
 Ugur Ozdemir uozde...@go.wustl.edu wrote:

 Hi,

 As a novice I was wondering if there is an easy way of creating an
 agenda file for a certain number of days starting from today. I know
 I can do some custom agenda commands if I do some study but I guess I
 am trying to free ride here.


 And you get it, of course!

 (setq org-agenda-ndays 35)

 Where 35 is my number of days I like to look ahead.

Building on this, you can define a function like that:

(defun my-org-agenda ()
  (interactive)
  (let ((org-agenda-ndays 35))
(org-agenda)))

Michael


pgp2nGF6sA56P.pgp
Description: PGP signature


Re: [O] Agenda file for the following X days

2011-06-07 Thread Johnny
Michael Markert markert.mich...@googlemail.com writes:

 On 7 Jun 2011, Detlef Steuer wrote:

 On Mon, 6 Jun 2011 23:10:12 -0500
 Ugur Ozdemir uozde...@go.wustl.edu wrote:

 Hi,

 As a novice I was wondering if there is an easy way of creating an
 agenda file for a certain number of days starting from today. I know
 I can do some custom agenda commands if I do some study but I guess I
 am trying to free ride here.


 And you get it, of course!

 (setq org-agenda-ndays 35)

 Where 35 is my number of days I like to look ahead.

 Building on this, you can define a function like that:

 (defun my-org-agenda ()
   (interactive)
   (let ((org-agenda-ndays 35))
 (org-agenda)))

 Michael

Maybe you can just use the prefix key for your needs? 
C-u 5 C-c a a 
will create a 5 day agenda. It is left as an excercise for the reader to
create an 8 day agenda (or a 5-year plan, or any other use). :)

Or maybe you were looking for something else?
-- 
Johnny



Re: [O] Agenda file for the

2011-06-07 Thread Ugur Ozdemir
Thanks to both of you !







[O] Agenda file for the following X days

2011-06-06 Thread Ugur Ozdemir
Hi,

As a novice I was wondering if there is an easy way of creating an agenda file 
for a certain number of days starting from today. I know I can do some custom 
agenda commands if I do some study but I guess I am trying to free ride here.

Cheers,

-- 
Ugur Ozdemir