I am using the ample theme and I quite like it, but I can't see the mouser pointer when moving over emacs and emacs is activated; as the emacs background and the mouse pointer are black, I would like to have the mouse pointer in e.g. red.

How can I change the colour of the mouse pointer?

GNU Emacs 24.4.1 (x86_64-apple-darwin14.0.0, Carbon Version 157 AppKit 1343.14) of 2014-10-27 on Rainers-MBP-4

OS X Yosemite

  • I am sure I can, as the colour of the cursor changes when I move over emacs, and the colour depends on the colour theme I have chosen - my OS is OS X Yosemite by the way.
    – Rainer
    Nov 6 '14 at 13:55

Just found this, did not tried it:

(set-mouse-color "red")
  • Perfect - works perfectly.
    – Rainer
    Nov 6 '14 at 14:19
  • Not completely perfect. It only affects the current frame. I haven't figured out how to set the default for all frames yet.
    – tbc0
    Apr 29 '21 at 14:19

Perhaps you want to customize the face:

M-x customize-face RET mouse RET

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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