Feature request: put the mode indicator more on the left

Michael Markert markert.michael at googlemail.com
Wed Aug 31 23:50:09 CEST 2011


On 28 Aug 2011, Vegard Øye wrote:
>
> Responding to an older thread: Evil commit fb86c91 adds the
> customization variable `evil-mode-line-format', which governs the
> position of the mode line tag. If the variable is set to the value
> `before', Evil indicates the current state before the mode list
> instead of after it:
>
> (setq evil-mode-line-format 'before)

> Internally, this is done by altering the variable
> `mode-line-position'.  I don't know how robust it is, but if we don't
> encounter any problems, we might make it the default.

This should be quite robust and it's done by sml-modeline-mode,
too. Although it's not really fitting in as it's no position indicator.

If you want to shift it all the way left you can use this:

(setq-default mode-line-format (cons '(evil-mode ("" evil-mode-line-tag))
                                     mode-line-format))

To remove the original tag (if you use the 'after evil-mode-line-format):
(delete 'evil-mode-line-tag global-mode-string)

('before format)
(delete 'evil-mode-line-tag mode-line-position)

As the mode-line-format var is already there (and the above is hacky)
maybe allow nil and treat it as "evil won't add it on its own to the
mode line"?

Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : https://lists.ourproject.org/pipermail/implementations-list/attachments/20110831/45d783c5/attachment.pgp 


More information about the implementations-list mailing list