No editor set! Please set LEO_EDITOR

40 views
Skip to first unread message

bpursley

unread,
Sep 4, 2009, 3:24:37 PM9/4/09
to leo-editor
The following message is popping up:

No editor set! Please set LEO_EDITOR or EDITOR environment variable,
or do g.app.db['LEO_EDITOR'] = 'gvim'

I am not interested in vim or EKR bindings, and these are the only
editors specifically mentioned in the documentation. Yet, on a search
through the documentation, I kept finding vague references to an
ability to specify "several" editors.

Where can I find documentation on setting an editor other than vim or
EKR?

Bernie Pursley

Simsbury, CT

Ville M. Vainio

unread,
Sep 4, 2009, 3:29:05 PM9/4/09
to leo-e...@googlegroups.com
On Fri, Sep 4, 2009 at 10:24 PM, bpursley <ber...@bpursley.net> wrote:

>
> The following message is popping up:
>
> No editor set! Please set LEO_EDITOR or EDITOR environment variable,
> or do g.app.db['LEO_EDITOR'] = 'gvim'

These mean the external editor. Let's say you want to use "scite".

Put this text in a node and execute it w/ ctrl+b:

g.app.db['LEO_EDITOR'] = 'scite'

Now, you'll see scite in right click menu.

--
Ville M. Vainio
http://tinyurl.com/vainio

bpursley

unread,
Sep 4, 2009, 3:58:50 PM9/4/09
to leo-editor


On Sep 4, 3:29 pm, "Ville M. Vainio" <vivai...@gmail.com> wrote:

> Put this text in a node and execute it w/ ctrl+b:
>
> g.app.db['LEO_EDITOR'] = 'scite'
>
> Now, you'll see scite in right click menu.

After making sure that I had scite installed on my ubuntu
installation, I followed your instructions which resulted in the
following error:

no script selected

OK, so I typed 'hello' in the body pane and selected it and repeated
the ctrl+b on the header resulting in the following error:

exception executing script
NameError: name 'hello' is not defined
--------------------
line 2: #@+node:g.app.db['LEO_EDITOR'] = 'scite'
* line 3: hello
line 4: #@nonl
line 5: #@-node:g.app.db['LEO_EDITOR'] = 'scite'

What am I missing?

Bernie Pursley
Simsbury, CT

Ville M. Vainio

unread,
Sep 4, 2009, 4:02:08 PM9/4/09
to leo-e...@googlegroups.com
On Fri, Sep 4, 2009 at 10:58 PM, bpursley <ber...@bpursley.net> wrote:

> After making sure that I had scite installed on my ubuntu
> installation, I followed your instructions which resulted in the
> following error:
>
> no script selected

Put it to body, not headline. Headline is ignored by ctrl+b

bpursley

unread,
Sep 4, 2009, 6:23:46 PM9/4/09
to leo-editor
On Sep 4, 4:02 pm, "Ville M. Vainio" <vivai...@gmail.com> wrote:

> Put it to body, not headline. Headline is ignored by ctrl+b

Thank you, I now see scite in right click menu. Now that I "get" it, I
have begun testing with multiple editors.

Bernie Pursley
Simsbury, CT
Reply all
Reply to author
Forward
0 new messages