all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Edward Avis <EAvis@capulaglobal.com>
Cc: 73744@debbugs.gnu.org
Subject: bug#73744: 26.1; Feature: helpful message from global-set-key giving Lisp
Date: Fri, 11 Oct 2024 16:05:38 +0300	[thread overview]
Message-ID: <86iktyzt5p.fsf@gnu.org> (raw)
In-Reply-To: <LO2P123MB74333502680223D78E7FBF07DC792@LO2P123MB7433.GBRP123.PROD.OUTLOOK.COM> (bug-gnu-emacs@gnu.org)

> Date: Fri, 11 Oct 2024 09:02:10 +0000
> From:  Edward Avis via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> M-x global-set-key
> Enter some key sequence and the command to bind to it.
> For example I entered C-c v and find-file-at-point.
> The following message is printed in the minibuffer and the *Messages*
> buffer:
> 
>     You can run the command 'global-set-key' with M-x gl-se RET
> 
> Which is helpful and all, but I think it would be great also to show
> the Lisp expression you could use to bind that key.  For example
> 
>     To set this key binding in Lisp,
>       (global-set-key (kbd "C-c v") 'find-file-at-point)
> 
> This could go only to *Messages* and not clutter the minibuffer.

You should be able to see the Lisp expression by typing "C-x z".





  reply	other threads:[~2024-10-11 13:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-11  9:02 bug#73744: 26.1; Feature: helpful message from global-set-key giving Lisp Edward Avis via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-11 13:05 ` Eli Zaretskii [this message]
     [not found] <LO2P123MB7433B5C92A1FD059B0002B3DDC792@LO2P123MB7433.GBRP123.PROD.OUTLOOK.COM>
2024-10-11 15:36 ` Eli Zaretskii

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=86iktyzt5p.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=73744@debbugs.gnu.org \
    --cc=EAvis@capulaglobal.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.