all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Random832 <random832@fastmail.com>, help-gnu-emacs@gnu.org
Subject: RE: Customizing faces
Date: Sat, 14 Nov 2015 07:01:45 -0800 (PST)	[thread overview]
Message-ID: <c8e8aa9e-7440-455e-b220-7eaf25317ab6@default> (raw)
In-Reply-To: <m2fv090zu5.fsf@fastmail.com>

> In using customize-face to set face attributes depending on display
> properties:
> 
> A) Is it possible to have multiple attribute lists that each apply if
> the display matches? Like "On all color displays, set these colors" and
> "On this particular type of GUI display set this font"? Or is only the
> first one that matches applied?
> 
> B) Is it possible to get back to the per-display view? After I save, if
> I customize the face again I just get a single attribute list
> representing the current display.
> 
> In both of these cases it is for customizing the default face, if it
> matters.
> 
> Also, is it possible to set the font family based on availability
> (i.e. a list of names, and if one isn't available it moves on to the
> next)?

You can do all of these things using Emacs Lisp.  See
`Defining Faces' in the Elisp manual:
http://www.gnu.org/software/emacs/manual/html_node/elisp/Defining-Faces.html

But with the Customize UI you can currently define only one
set of face attributes for a given face.  It would be possible
to extend the UI to let you do what you request, but I'm not
sure most users of Customize would be interested.  If this
extra functionality were not "in their face", but were made
available on demand, then the feature could be useful.
To request such an enhancement, use `M-x report-emacs-bug'.

The Customize UI generally allows you to easily change
behavior for the current session, i.e., based on the current
display characteristics etc., and then to save these new
settings for future sessions.  So far, at least, it does not
really cater to defining settings for contexts other than
the current session (different displays etc.).  But it could.



  reply	other threads:[~2015-11-14 15:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-14  8:06 Customizing faces Random832
2015-11-14 15:01 ` Drew Adams [this message]
2015-11-15  5:09   ` Random832

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

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

  git send-email \
    --in-reply-to=c8e8aa9e-7440-455e-b220-7eaf25317ab6@default \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=random832@fastmail.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.