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: Óscar Fuentes
Subject: Re: visualize evil insert mode
Date: Wed, 04 Jul 2018 15:04:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

emacs-list-18@pgxml.net writes:

>  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... ;-)

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.




reply via email to

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