I have a custom emacs major-mode which I specified the background and foreground colors for. However, the default cursor color clashes with the background and you can't see it.
'set-cursor-color' changes the color for the entire emacs session which is undesirable. I tried using a mode-hook where I set the 'cursor' face locally using 'make-local-variable', that didn't work either (I saw no effect), I did see an effect if I set a font-lock face though, so I think the code is correct.
My guess is that the cursor is actually only settable as a global variable and is not evaluated per buffer. Is there a way I can set the cursor color per buffer so that it doesn't clobber the cursor color for other buffers? Or maybe is there a way where I can detect that I am 'entering' and 'leaving' the buffer and set the cursor color appropriately?
C-h f set-cursor-color(docstring) the color is set for each emacs frame (what's usually called a window outside emacs).