all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'ishi soichi'" <soichi777@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: change faces interactively
Date: Fri, 20 Jan 2012 07:30:49 -0800	[thread overview]
Message-ID: <67E1B9EC96D94790BEA9EF4E01430D8F@us.oracle.com> (raw)
In-Reply-To: <CAEjRLuQC6dvPv5Xy6nQgVW9rPfxXMt2e2Zz1StWE-6ZC6O_tug@mail.gmail.com>

> I'm trying to develop an interactive function that changes faces. 
> For example, one way to change the face is
>
> ;;changes face of "think", "thinks", and "thought"
> (define-generic-mode my-mode
>   nil nil
>   '(("think?\\w*\\|thought" . 'org-warning)) nil nil)
>
> But this changes the face according to the mode, not the
> interactive command input.
>
> Is there anyway to develop an interactive function like that ?
> (defun change-face-to-one () (interactive) ...)

Not quite sure what you're asking.  Do you just want to modify a set of faces FS
so they look the same as some given face G?

If so, you can define a command that reads the names of the faces to modify (FS)
and the face to copy (G), and then, in the body of the function, call
`copy-face' to modify each of the former (each F in FS).





  reply	other threads:[~2012-01-20 15:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-20  7:41 change faces interactively ishi soichi
2012-01-20 15:30 ` Drew Adams [this message]
2012-01-21  1:20   ` ishi soichi
2012-01-21  2:07     ` Drew Adams
2012-01-23 10:51       ` Andreas Röhler
2012-01-23 18:05     ` Michael Heerdegen
2012-01-25  6:44       ` ishi soichi

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=67E1B9EC96D94790BEA9EF4E01430D8F@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=soichi777@gmail.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.