I'm using evil-mode. My goal is to have a blinking cursor upon entering evil-insert-state, and to have a non-blinking cursor in evil-normal-state. I tried the following but it doesn't work:

  (add-hook 'evil-insert-state-entry-hook
                        (lambda () (setq blink-cursor-mode t)))
  (add-hook 'evil-insert-state-exit-hook
                        (lambda () (setq blink-cursor-mode nil)))

1 Answer 1


use (blink-cursor-mode 1) to enable Blink Cursor instead.

from (describe-variable 'blink-cursor-mode) :

Setting this variable directly does not take effect; either customize it (see the info node ‘Easy Customization’) or call the function ‘blink-cursor-mode’.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.