unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Marcin Borkowski <mbork@mbork.pl>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: I'd like Emacs to display a big (but short) "pop up" text
Date: Tue, 08 Aug 2017 11:57:29 +0200	[thread overview]
Message-ID: <87r2wmbcvq.fsf@rosalinde> (raw)
In-Reply-To: <87o9rqlkm4.fsf@jane> (Marcin Borkowski's message of "Tue, 08 Aug 2017 07:00:19 +0200")

On Tue, 08 Aug 2017 07:00:19 +0200 Marcin Borkowski <mbork@mbork.pl> wrote:

> Hi all,
>
> I'd like to display a "pop up"/"tip", i.e., a short text (a few
> characters).  The thing is, I want it to be visible: large font,
> preferably centered on the screen.  My use case is demoing Emacs, and
> before showing the effects of e.g. C-x 2, I'd like to show
> a big-lettered "C-x 2" on the screen.  It would be nice to use something
> like the blocks in M-x tetris to build the letters, or anything else
> that would clearly show "C-x 2" or whatever keychord I'm showing.
>
> Any ideas?

How about tooltip-show with a large face, e.g.:

(set-face-attribute 'tooltip nil :height 4.0
                    :foreground "white" :background "red")

You'd also have to play with tooltip-frame-parameters to get the
position the way you want.

Steve Berman



  parent reply	other threads:[~2017-08-08  9:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-08  5:00 I'd like Emacs to display a big (but short) "pop up" text Marcin Borkowski
2017-08-08  5:29 ` Eric Abrahamsen
2017-08-08  9:57 ` Stephen Berman [this message]
2017-08-08 12:20 ` Drew Adams
2017-08-09 23:44   ` Eric Abrahamsen

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=87r2wmbcvq.fsf@rosalinde \
    --to=stephen.berman@gmx.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mbork@mbork.pl \
    /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).