Lumail - The console email client


Lua primitives: editor()

NOTE: Lumail-legacy has been superseded by Lumail 2.x, which has a wholly unified Lua API.

When lumail is used to compose a new message, or reply to an existing message, it will invoke your editor to do so.

If no editor has been set via editor() then the value of the environmental variable EDITOR will be used, if set.

This means the selection algorithm looks like this:

  1. If a path as been set with editor(), then use that.
  2. If there is an environmental variable named EDITOR set, then the value will be used.
  3. Otherwise /usr/bin/vim will be used.

Availability

This function has been available since version 0.08.

See Also

See also compose, get_variables, on_edit_message, reply, send_email.