[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: visualize evil insert mode
From: |
Bingo |
Subject: |
Re: visualize evil insert mode |
Date: |
Wed, 04 Jul 2018 18:44:56 +0530 |
User-agent: |
K-9 Mail for Android |
Le 4 juillet 2018 12:14:08 GMT+05:30, emacs-list-18@pgxml.net a écrit :
>Hi,
>
> i am searching for ideas how to visualize that evil mode is in insert
> state.
>
> Till now i use a funvtion that is hooked into the post-command-hook
> that moves an overlay (face bold) like this:
>
>(defun ck/evil/move-insert-mode-overlay()
> "move the insert mode overlay"
> (move-overlay ck/insert-mode-overlay (line-beginning-position)
> (line-end-position))
> )
>
> This works, but is not that nice. For example on an empty line, i dont
> have any visual feedback.
>
>Any other ideas for this? No, hl-line-mode does not count... ;-)
>
>Chris
I find it easier to change the color of mode-line according to evil state :
https://www.emacswiki.org/emacs/Evil#toc18
It is always in peripheral vision, so once I got used to it, I never lacked the
evil state awareness.