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