emacs-orgmode
[Top][All Lists]
Advanced

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

Re: org-startup-folded does not work with directory local variables


From: Robert Pluim
Subject: Re: org-startup-folded does not work with directory local variables
Date: Wed, 04 May 2022 17:04:40 +0200

>>>>> On Wed, 04 May 2022 22:46:56 +0800, Ihor Radchenko <yantar92@gmail.com> 
>>>>> said:

    Ihor> Robert Pluim <rpluim@gmail.com> writes:
    Ihor> This is no different. org-startup-folded controls loading of Org mode.
    Ihor> However, Emacs applies directory-local variables and file-local
    Ihor> variables _after_ loading Org mode. Org cannot do much about it 
without
    Ihor> hacking Emacs defaults.
    >> 
    >> Weʼre in agreement there. My point is that itʼs not a bug (although I
    >> guess you could ask for a feature to apply local/directory variables
    >> before applying the mode

    Ihor> It's not exactly a bug, but feature request to Emacs is exactly what I
    Ihor> was implying.

Right. My predictatron says itʼs unlikely to be greeted
enthusiastically.

    >> , but in this case thereʼs an easy
    >> workaround).

    Ihor> I am not sure which workaround you are referring to.
    Ihor> Setting org-startup-folded globally? On per-file basis? the former is
    Ihor> global and will apply to broader scope than a directory-local 
variable.
    Ihor> The latter only works in a single file (and works instead of 
file-local
    Ihor> variable).

I was talking about #+STARTUP: (Iʼm assuming #+SETUPFILE: also works,
but I haven't tried it).

Robert
-- 



reply via email to

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