In particular, I have a blue cursor (and highlighted window), which seems to correspond with spacemacs' Emacs mode.

But I'd like to put that color to yellow or something else. Don't see that in the "Color themes" section of Spacemacs' guide. And I don't seem to have a cursor-color variable, as described here.

How can we tweak the cursor and highlighted window color, without changing modes?

1 Answer 1


If you are using Spacemacs with Emacs editing style, you first have to set dotspacemacs-colorize-cursor-according-to-state nil in your dotspacemacs/init (setq-default .... This enables you to configure the cursor color from whatever theme you are using without Spacemacs automatically overwriting it.

To customize spacemacs colors you can type M-x customize-group spacemacs. To change the color of the cursor I refer you to this SO thread here.

  • Ah, ok cool. What's the spacemacs function to then set the cursor and highlighted window color? Apr 9, 2017 at 18:10
  • @Nutritioustim just added to answer.
    – Daniel
    Apr 9, 2017 at 23:39
  • you are a life saver :)) thank you, this worked for me.
    – SdSaati
    Jul 8, 2021 at 9:11

Your Answer

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

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