Evil experiences

Alan Schmitt alan.schmitt at polytechnique.org
Wed Sep 14 10:25:18 CEST 2011


On 13 sept. 2011, at 22:32, Michael Markert wrote:

>> (setq evil-emacs-state-cursor '("red" box))
> 
> I use this for `evil-default-cursor':
> 
> #+begin_src emacs_lisp
> (defun cofi/evil-cursor ()
>  "Change cursor color according to evil-state."
>  (let ((default "OliveDrab4")
>        (cursor-colors '((insert . "dark orange")
>                         (emacs  . "sienna")
>                         (visual . "white"))))
>    (setq cursor-type (if (eq evil-state 'visual)
>                          'hollow
>                        'bar))
>    (set-cursor-color (def-assoc evil-state cursor-colors default))))
> #+end_src

Hello,

I've tried both of these (adding them to my .emacs), and I could make neither work. Is it because I'm on Aquamacs? Or because I'm using a color theme?

Thanks,

Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ourproject.org/pipermail/implementations-list/attachments/20110914/e924aa7c/attachment-0001.htm 


More information about the implementations-list mailing list