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, 2014 at 13:55

2 Answers 2


Just found this, did not tried it:

(set-mouse-color "red")
  • 1
    Perfect - works perfectly.
    – Rainer
    Nov 6, 2014 at 14:19
  • 1
    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, 2021 at 14:19
  • 1
    @tbc0 Just add a line in init.el and restart all the emacs processes.
    – David Jung
    Jun 30, 2022 at 4:22
  • 2
    @tbc0 Or, follow nanny's answer and save it for future sessions and restart the emacs processes
    – David Jung
    Jun 30, 2022 at 4:23
  • (add-to-list 'default-frame-alist '(mouse-color . "white")) handles it for new frames as well.
    – graywolf
    Nov 12, 2022 at 16:43

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 and acknowledge you have read our privacy policy.

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