From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rustom Mody Newsgroups: gmane.emacs.help Subject: Re: Display the key bindings on the screen Date: Mon, 24 Jun 2013 09:28:04 -0700 (PDT) Message-ID: References: <7eb2be9a-8ab7-47ee-af0d-02f8ebd4136e@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1372093660 21582 80.91.229.3 (24 Jun 2013 17:07:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Jun 2013 17:07:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 24 19:07:42 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UrAEt-0005TI-Uy for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Jun 2013 19:07:40 +0200 Original-Received: from localhost ([::1]:43674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrAEt-0007tT-FJ for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Jun 2013 13:07:39 -0400 X-Received: by 10.224.200.202 with SMTP id ex10mr26489202qab.8.1372091285395; Mon, 24 Jun 2013 09:28:05 -0700 (PDT) X-Received: by 10.182.22.131 with SMTP id d3mr45976obf.39.1372091285274; Mon, 24 Jun 2013 09:28:05 -0700 (PDT) Original-Path: usenet.stanford.edu!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!j2no1581985qak.0!news-out.google.com!fv2ni0qab.0!nntp.google.com!j2no1581981qak.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <7eb2be9a-8ab7-47ee-af0d-02f8ebd4136e@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=59.95.34.59; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 59.95.34.59 User-Agent: G2/1.0 Injection-Date: Mon, 24 Jun 2013 16:28:05 +0000 X-Received-Bytes: 3068 Original-Xref: usenet.stanford.edu gnu.emacs.help:199431 X-Mailman-Approved-At: Mon, 24 Jun 2013 13:07:27 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91695 Archived-At: 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 :-((