* I'd like Emacs to display a big (but short) "pop up" text
@ 2017-08-08 5:00 Marcin Borkowski
2017-08-08 5:29 ` Eric Abrahamsen
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Marcin Borkowski @ 2017-08-08 5:00 UTC (permalink / raw)
To: Help Gnu Emacs mailing list
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?
--
Marcin Borkowski
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: I'd like Emacs to display a big (but short) "pop up" text
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
2017-08-08 12:20 ` Drew Adams
2 siblings, 0 replies; 5+ messages in thread
From: Eric Abrahamsen @ 2017-08-08 5:29 UTC (permalink / raw)
To: help-gnu-emacs
Marcin Borkowski <mbork@mbork.pl> writes:
> 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?
I've wanted this too -- it seems like this is something alert.el would
be good for. It would be particularly nice to be able to filter on key
prefixes, or major mode commands, or something like that. Maybe a
post-command-hook that examines the function called, and decides whether
to pop up a key-press display or not...
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: I'd like Emacs to display a big (but short) "pop up" text
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
2017-08-08 12:20 ` Drew Adams
2 siblings, 0 replies; 5+ messages in thread
From: Stephen Berman @ 2017-08-08 9:57 UTC (permalink / raw)
To: Marcin Borkowski; +Cc: Help Gnu Emacs mailing list
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: I'd like Emacs to display a big (but short) "pop up" text
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
@ 2017-08-08 12:20 ` Drew Adams
2017-08-09 23:44 ` Eric Abrahamsen
2 siblings, 1 reply; 5+ messages in thread
From: Drew Adams @ 2017-08-08 12:20 UTC (permalink / raw)
To: Marcin Borkowski, Help Gnu Emacs mailing list
> 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.
I created ‘showkey.el’ for just this. It shows keys and other events
as you use them.
You can tailor the behavior to ignore given event types for display.
There are 2 ways to show keys:
* ‘showkey-tooltip-mode’ – Show only the last key used, in a tooltip.
Refreshed with each such event.
* ‘showkey-log-mode’ – Show a log of such events, in a separate frame.
Refreshed with each new event. On top of other frames, without
stealing focus.
Description: https://www.emacswiki.org/emacs/ShowKey
Code: https://www.emacswiki.org/emacs/download/showkey.el (or MELPA)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: I'd like Emacs to display a big (but short) "pop up" text
2017-08-08 12:20 ` Drew Adams
@ 2017-08-09 23:44 ` Eric Abrahamsen
0 siblings, 0 replies; 5+ messages in thread
From: Eric Abrahamsen @ 2017-08-09 23:44 UTC (permalink / raw)
To: help-gnu-emacs
Drew Adams <drew.adams@oracle.com> writes:
>> 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.
>
> I created ‘showkey.el’ for just this. It shows keys and other events
> as you use them.
That looks perfect, thanks for the link, and the library!
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-08-09 23:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2017-08-08 12:20 ` Drew Adams
2017-08-09 23:44 ` Eric Abrahamsen
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).