GNU bug report logs - #43396
27.1; Customized "cursor" face has no effect in daemon mode

Previous Next

Package: emacs;

Reported by: Teemu Likonen <tlikonen <at> iki.fi>

Date: Mon, 14 Sep 2020 13:24:02 UTC

Severity: normal

Found in version 27.1

Full log


View this message in rfc822 format

From: Teemu Likonen <tlikonen <at> iki.fi>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 43396 <at> debbugs.gnu.org
Subject: bug#43396: 27.1; Customized "cursor" face has no effect in daemon mode
Date: Mon, 14 Sep 2020 18:58:05 +0300
[Message part 1 (text/plain, inline)]
* 2020-09-14 18:33:31+03, Eli Zaretskii wrote:

> I think you need to do that in server-after-make-frame-hook instead,
> to make it work in a daemon session. When the daemon reads your init
> file, it doesn't have a GUI frame to play with, so some
> display-related customizations don't work until there's a frame.

Thanks for the info. My quick fix with (when (daemonp) ...) works too,
and it happens before creating any frames.


    ;;; ~/.emacs.d/init.el

    (setq custom-file "~/.emacs.d/custom.el")
    (load custom-file)

    (when (daemonp)
      (face-spec-set 'cursor '((((background dark)) :background "#fafafa")
                               (((background light)) :background "black"))))

-- 
/// Teemu Likonen - .-.. http://www.iki.fi/tlikonen/
// OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 3 years and 353 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.