emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: Bug with org-startup-folded?


From: Bastien
Subject: Re: [Orgmode] Re: Bug with org-startup-folded?
Date: Fri, 30 Nov 2007 12:25:44 +0000
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux)

Wanrong Lin <address@hidden> writes:

> (setq org-agenda-file-regexp "\\.org\\'")
> (add-to-list 'auto-mode-alist `(,org-agenda-file-regexp . org-mode))

This is weird.  Why don't you simply use this:

  (add-to-list 'auto-mode-alist ("\\.org\\'" . org-mode))

> By inserting some "message" statements (that is how far I can go on
> debugging elisp code)  in org-mode function, I found that when I visit a
> ".org" file for the fist time, "org-mode" function is not called at all!
> But the file does open as an normal org-mode file (with "Org" appearing
> in the mode-line), except the text is not folded. 

This looks also weird.  I think your configuration is somehow broken.
Does this happen with every .org file?  You should check the consistence
of the global variables `org-startup-options' `org-startup-folded' *and*
of local options in your Org file.

-- 
Bastien




reply via email to

[Prev in Thread] Current Thread [Next in Thread]