help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: visualize evil insert mode


From: emacs-list-18
Subject: Re: visualize evil insert mode
Date: Thu, 05 Jul 2018 08:30:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Óscar Fuentes <ofv@wanadoo.es> writes:

> emacs-list-18@pgxml.net writes:
>
>>  i am searching for ideas how to visualize that evil mode is in insert
>>  state.

[...]

> Any other ideas for this? No, hl-line-mode  does not count... ;-)
>
> It depends on what you mean when you say "visualize".
>
> I use
>
> (setq evil-insert-state-cursor '("red" hbar))
> (setq evil-insert-state-tag
>   (propertize "<I>" 'face '((:foreground "white" :background "red"))))
>
> Similar for the other modes.

Thank you, i did not know that! :-)

To be a bit more precise...

- shows the current line where the cursor is (works halfway)
- shows the current line even if it is empty (i am experimenting with
  overlays here)
- works on terminals with less than 256 colors.

Chris



reply via email to

[Prev in Thread] Current Thread [Next in Thread]