7

I tried to set the foreground color of the cursor face, but it does not seem to work. Setting the background color works fine, but setting the foreground color does not have any effect.

I would like Emacs to act in the same way as my terminal. When I move the cursor over the text the foreground color does not change.

enter image description here

When I do the same in Emacs the foreground color becomes white.

enter image description here

How can I stop Emacs inverting the text at the cursor?

5

Nope. M-x customize-option cursor shows you the doc string:

Basic face for the cursor color under X. Hide Currently, only the :background attribute is meaningful; all other attributes are ignored. The cursor foreground color is taken from the background color of the underlying text.

Note the last sentence.

Consider filing an enhancement request: M-x report-emacs-bug.

  • 2
    Uff. The inconceivable happened: I found something Emacs can not do. ;-) – ceving Dec 5 '15 at 10:12
  • 1
    There are an infinite number of things that the Emacs design or implementation does not immediately support. M-x report-emacs-bug to suggest enhancements. – Drew Dec 5 '15 at 16:01
  • Still not possible? – rien333 Mar 14 at 17:51

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.