Lugaru's Epsilon
Programmer's
Editor 14.04

Context:
Epsilon User's Manual and Reference
   . . .
   Command Reference
      abort
      about-epsilon
      align-by-tab
      . . .
      zoom-window
   Variable Reference
      . . .
      misc-language-fill-mode
      mode-extra
      mode-format
      mode-line-at-top
      mode-line-position
      . . .
   Changing Epsilon
   . . .

Previous   Up    Next
mode-extra  Variable Reference   mode-line-at-top


Epsilon User's Manual and Reference > Variable Reference >

mode-format: preference variable

Default value: " %b%E%M %l,%c %d%p %s%f"

This variable specifies what information Epsilon puts on the mode line. Epsilon substitutes values for certain %-sequences in the mode line.

Here are the available sequences:

%b
The buffer's file name, or if none, the buffer name. If Epsilon displays the buffer name, it usually appears in parentheses. The name may be abbreviated if there's not enough room. The file name will normally be relative to the current directory, but see the full-path-on-mode-line variable.

%B
The buffer's file name as an absolute pathname, or if none, the buffer name.

%c
The current column number, counting columns from 0.

%C
The current column number, counting columns from 1.

%d
The current display column, with a < before it, and a space after. However, if the display column has a value of 0 (meaning horizontal scrolling is enabled, but the window has not been scrolled), or -1 (meaning the window wraps long lines), Epsilon substitutes nothing.

%D
The current display column, but if the display column is -1, Epsilon substitutes nothing.

%E
Any "extra text" recorded for this buffer by a command, specified by the mode-extra variable, plus any text specified by the mode-more-extra variable. These may indicate pending transfer status or similar.

%f
The name of the current function (in buffers where Epsilon can determine this), or in some modes, other similar information. See the variables display-definition and html-display-definition.

%l
The current line number. (Also see the draw-line-numbers variable to display line numbers to the left of text.)

%L
The last component of the buffer's file name (the part after the last / or \), or if none, the last component of the buffer name.

%m
Epsilon substitutes the text " More ", but only if characters exist past the end of the window. If the last character in the buffer appears in the window, Epsilon substitutes nothing.

%M
The buffer's mode, inside square brackets.

%o
The value of point (a character count from the start of the buffer).

%P
Epsilon substitutes the percentage of point through the buffer, followed by a percent sign.

%p
Epsilon substitutes the percentage of point through the buffer, followed by a percent sign. However, if the bottom of the buffer appears in the window, Epsilon displays Bot instead (or End if point is at the very end of the buffer). Epsilon displays Top if the top of the buffer appears, and All if the entire buffer is visible.

%s
Epsilon substitutes "* " if the buffer's modified flag has a nonzero value, otherwise nothing.

%S
Epsilon substitutes "*" if the buffer's modified flag has a nonzero value, otherwise nothing.

%h
Epsilon substitutes the current hour in the range 1 to 12.

%H
Epsilon substitutes the current hour in military time in the range 0 to 23.

%n
Epsilon substitutes the current minute in the range 0 to 59.

%e
Epsilon substitutes the current second in the range 0 to 59.

%a
Epsilon substitutes "am" or "pm" as appropriate.

Note:
For the current time, use a sequence like %2h:%02n%a for "3:45 pm" or %02H:%02n:%02e for "15:45:21".

%%
Epsilon substitutes a literal "%" character.

%<
Indicates that redisplay may omit text to the left, if all of the information will not fit.

%>
Puts any following text as far to the right as possible.

For any numeric substitution, you may include a number between the % and the letter code, giving the field width: the minimum number of characters to print. You can use the same kinds of field width specifiers as C's printf() function. The sequence %4c expands to "<Space><Space><Space>9", %04c expands to "0009", and %-4c expands to "9<Space><Space><Space>".

Also see the variable show-when-idle.

More info:

Epsilon's Screen Layout (General)
Display Commands
Window Borders
Window Titles and Mode Lines (Primitives)



Previous   Up    Next
mode-extra  Variable Reference   mode-line-at-top


Lugaru Epsilon Programmer's Editor 14.04 manual. Copyright (C) 1984, 2021 by Lugaru Software Ltd. All rights reserved.