On Thu, 2 Jan 2014 12:46:53 -0800 (PST)
Jack Kuan <[email protected]> wrote:

> Hi, 
> 
>   g.es(c.config.getString('view-rendered-default-kind')) 
> 
> shows md in the log pane. So, I guess it's set correctly, however I'm 
> unable to preview a node with markdown markups in it unless I make the node 
> a @md node.
> Could this have anything to do with the fact that the plugin sets the 
> option to an attribute rather than getting it from the option setting every 
> time?

Probably not, all settings should be read with proper precedence before
the plugin starts saving them internally.

gatesphere/Jacob the author of @md stuff will have to comment on
whether it's working as intended and how that relates to doing what you
want to do.

Cheers -Terry

> Thanks
> Jack
> 
> On Thursday, January 2, 2014 3:29:40 PM UTC-5, Terry wrote:
> >
> > On Thu, 2 Jan 2014 12:15:57 -0800 (PST) 
> > Jack Kuan <[email protected] <javascript:>> wrote: 
> >
> > > Hi, 
> > > 
> > > I'm trying to configure the @string view-rendered-default-kind setting 
> > of 
> > > the viewrendered plugin, however, since this plugin is enabled by 
> > default 
> > > in leoSettings.leo 
> > > it gets loaded before I have the chance to set the setting. Is there a 
> > way 
> > > to update the settings later at runtime? I guess I could also do it in 
> > > leoSettings.leo or remove 
> > > it from enabled-plugins, but I really don't want to change the defaults. 
> >
> > if you put 
> >
> >   g.es(c.config.getString('view-rendered-default-kind')) 
> >
> > in a node by itself and Ctrl-B to run it, what's the value you see in 
> > the log window? 
> >
> > It should be the most recently defined value according to 
> > http://leoeditor.com/customizing.html 
> >
> > i.e. if you have it set properly in ~/.leo/myLeoSettings.leo, that's 
> > the value you should see, unless you override it in the .leo file 
> > you're looking at. 
> >
> > The point being that the plugin being enabled by default doesn't 
> > interact with the priorities of settings, and you setting of 
> > view-rendered-default-kind should be the one the plugin sees. 
> >
> > Cheers -Terry 
> >
> 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to