all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rustom Mody <rustompmody@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Display the key bindings on the screen
Date: Mon, 24 Jun 2013 09:28:04 -0700 (PDT)	[thread overview]
Message-ID: <e6730aba-8d9d-4901-a441-b53ae919fd24@googlegroups.com> (raw)
In-Reply-To: <7eb2be9a-8ab7-47ee-af0d-02f8ebd4136e@googlegroups.com>

On Sunday, June 23, 2013 7:36:07 AM UTC+5:30, Rustom Mody wrote:
> On Sunday, June 23, 2013 12:45:11 AM UTC+5:30, marc tfardy wrote:
> > I plan a Emacs video tutorial. For better key chords visualisation I 
> > would like to display the pressed keys on the screen (in a window or in 
> > a small separate frame). This means: when I type some key combination 
> > that is bound to a Emacs lisp function - or this keys are a prefix - 
> > these keys are displayed on the screen and are further normally 
> > processed. Think of something like key visualisation in this video:
> > https://tutsplus.com/lesson/the-command-palette/
> > but not as a separate software, but a part of Emacs. This could could be 
> > an advantage for extension, e.g. displaying of the command name.
> > 
> > Is there any package that cover this functionality?
> 
> 
> 
> http://www.emacswiki.org/emacs/CommandLogMode
> 
> Ive been trying to tweak it to make it usable... not very successful

Well I did tweak it a bit and its a little better.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(load "command-log-mode")
(defun rusi/open-command-log-buffer ()
  (interactive)
  (let ((pop-up-frames t))
    (clm/open-command-log-buffer))
)
(add-hook 'haskell-mode-hook 'command-log-mode)
(add-hook 'inferior-haskell-hook 'command-log-mode)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Since I currently want it to work in teaching haskell, I need it to kick in for haskell-mode and inferior-haskell-mode -- that explains the two hook setups.
The rusi/open-command-log-buffer is just clm/open-command-log-buffer advised to open in a separate frame.

I further wanted to make the frame look better eg no header, minibuffer etc.
However my attempts at hacking the frame commands are unsuccessful at a completely noob level and my question http://lists.gnu.org/archive/html/help-gnu-emacs/2013-06/msg00465.html is unanswered so far :-((


  reply	other threads:[~2013-06-24 16:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-22 19:15 Display the key bindings on the screen marc tfardy
2013-06-23  2:06 ` rustompmody
2013-06-24 16:28   ` Rustom Mody [this message]
2013-06-23  3:09 ` Michael Heerdegen
2013-06-24 14:55 ` Tim Visher
     [not found] ` <mailman.2233.1371957909.22516.help-gnu-emacs@gnu.org>
2013-06-24 16:30   ` Rustom Mody
2013-06-24 18:05     ` Michael Heerdegen
2013-06-24 19:09     ` marc tfardy
2013-06-24 21:22       ` Sebastien Vauban
2013-06-26  1:13         ` Michael Heerdegen
     [not found]     ` <mailman.2321.1372097153.22516.help-gnu-emacs@gnu.org>
2013-06-25  1:51       ` Rustom Mody
2013-06-25  7:41         ` Peter Dyballa
2013-06-25 21:20         ` Michael Heerdegen
     [not found]         ` <mailman.2425.1372195268.22516.help-gnu-emacs@gnu.org>
2013-06-26  3:56           ` Rustom Mody

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=e6730aba-8d9d-4901-a441-b53ae919fd24@googlegroups.com \
    --to=rustompmody@gmail.com \
    --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.
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.