Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't change cursor color in emacsclient
    primarykey
    data
    text
    <p>If I run <code>emacs --daemon</code> (in <code>.xinitrc</code> or later) and then <code>emacsclient -c</code>, newly created frame has black cursor color, regardless on colortheme or any other settings. More exactly, before I type anything, the cursor color is white (or other color), but with first keypresses it becomes black and cannot be changed via <code>set-cursor-color</code>. Both default and my custom colorthemes are black, so it makes editing very uncomfortable.</p> <p>If I run <code>emacs</code> and <code>M-x server-start</code> instead of <code>emacs --daemon</code> then this problem does not appear. But this way I need to keep one emacs "main" frame and not kill it incidentally, this doesn't seem like a nice solution.</p> <p>I have following block in <code>.emacs.d/init.el</code> but it doesn't help:</p> <pre><code>(set-cursor-color "red") (setq initial-frame-alist '((cursor-color . "red"))) (setq default-frame-alist '((cursor-color . "red"))) (add-hook 'window-setup-hook '(lambda () (set-cursor-color "red"))) (add-hook 'after-make-frame-functions '(lambda (f) (with-selected-frame f (set-cursor-color "red")))) </code></pre> <p>If I run <code>M-x describe-face RET cursor</code> I get:</p> <pre><code>(...) Defined in `faces.el'. Family: unspecified Foundry: unspecified Width: unspecified Height: unspecified Weight: unspecified Slant: unspecified Foreground: unspecified Background: black Underline: unspecified Overline: unspecified Strike-through: unspecified Box: unspecified Inverse: unspecified Stipple: unspecified Font: unspecified Fontset: unspecified Inherit: unspecified </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload