On Fri, Oct 8, 2010 at 5:12 AM, Ivanov Dmitriy <usr...@gmail.com> wrote:
> How can I load an abbrev file on the start of leo? For testing I tried
> to create a script button:
>
> c.executeMinibufferCommand("read-abbrev-file D:\Dmitry\abbrev")
>
> but it didn't work.

Execute this from an @button node (or a plugin):

    c.abbrevCommands.readAbbreviationsFromFile(fileName)

But this is the hard way.  Instead, enable and define your
abbreviations in myLeoSettings.leo (as children of the @settings node)
as follows:

@bool enable-abbreviations = True

@data global-abbreviations

The body text of this node contains the abbreviations.  Here are the
abbreviations I use:

at...@nocolor\n\n
atn...@nocolor-node\n\n
a...@others\n\n

HTH.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-edi...@googlegroups.com.
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to