unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg <incal@dataswamp.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Question Regarding Cursor Blink Color For Themes In Emacs
Date: Wed, 15 Jun 2022 18:53:54 +0200	[thread overview]
Message-ID: <878rpx7tr1.fsf@dataswamp.org> (raw)
In-Reply-To: 3578d3af-34c8-4aec-ba95-a84ff34865ed@www.fastmail.com

Samuel Banya wrote:

> I've been trying to develop my own theme in Emacs which has
> been good so far

Hm, okay, how does that work? See my face file below, is that
a theme? How does your work?

> However, I do have one weird thing I've noticed, the cursor
> while in 'blink-mode' produces a background which is fine,
> but defaults to black text for its foreground color, which
> makes it very hard to use in modes like Org Mode, etc.

Don't know, have that disabled below/before Emacs
(blink-cursor-mode is actually t! sacrilege). No,

  # cursor blink
  cursor_blink=/sys/class/graphics/fbcon/cursor_blink
  sudo chmod a+w $cursor_blink
  echo 0 > $cursor_blink

but there _is_ a `cursor' face ...

Do you use Emacs with -nw in xterm in X?

xterm*cursorBlink: false
xterm*cursorcolor: #000000

In the words of the barrel racer: just try, and you will fly!

(defun set-all-faces (fg &optional bg weight)
  (let ((backg (or bg     "black"))
        (wght  (or weight 'normal))
        (faces) )
    (mapatoms (lambda (s)
                (when (facep s)
                  (push (symbol-name s) faces) )))
    (dolist (f faces)
      (set-face-attribute (intern f) nil
                          :foreground fg)
                          :background backg
                          :weight     wght
                          :italic     nil) ))
;; (set-all-faces "red")
;;                      ^ eval here


https://dataswamp.org/~incal/emacs-init/face.el

https://dataswamp.org/~incal/conf/.xinitrc
https://dataswamp.org/~incal/conf/.Xresources

-- 
underground experts united
https://dataswamp.org/~incal




      reply	other threads:[~2022-06-15 16:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-15 16:02 Question Regarding Cursor Blink Color For Themes In Emacs Samuel Banya
2022-06-15 16:53 ` Emanuel Berg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878rpx7tr1.fsf@dataswamp.org \
    --to=incal@dataswamp.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).