From: harven <harven@free.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: global-set-key with parameter
Date: Thu, 09 Oct 2008 16:11:20 +0200 [thread overview]
Message-ID: <m2prm9hn93.fsf@free.fr> (raw)
In-Reply-To: mailman.685.1223560176.25473.help-gnu-emacs@gnu.org
Fred Picher <frederificc@yahoo.ca> writes:
> --- On Thu, 10/9/08, Barry Margolin <barmar@alum.mit.edu> wrote:
>
>> From: Barry Margolin <barmar@alum.mit.edu>
>> Subject: Re: global-set-key with parameter
>> To: help-gnu-emacs@gnu.org
>> Received: Thursday, October 9, 2008, 6:40 AM
>
> Hello,
>
>> You need to write a new Elisp function that calls
>> window-configuration-to-register with the parameter, and bind
>> the key to THAT function.
>
>> (defun window-config-to-register-w ()
>> "Store the window configuration in register 'w'."
>> (interactive)
>> (window-configuration-to-register ?w))
>
>>
>(global-set-key [f5] 'window-configuration-to-register-w)
> Thanks for the help. That sounds quite straightforward
> although I do not know any lisp. For this reason I'm a bit lost
> when I get the following error message after pressing F5:
>
> Symbol's function definition is void: window-configuration-to-register-w
This is a typo. The command to be bound to f5 is called
window-config-to-register-w. So, use
(global-set-key [f5] 'window-config-to-register-w)
next parent reply other threads:[~2008-10-09 14:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.685.1223560176.25473.help-gnu-emacs@gnu.org>
2008-10-09 14:11 ` harven [this message]
[not found] <mailman.652.1223525988.25473.help-gnu-emacs@gnu.org>
2008-10-09 6:40 ` global-set-key with parameter Barry Margolin
2008-10-09 13:49 ` Fred Picher
2008-10-08 18:32 Fred Picher
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=m2prm9hn93.fsf@free.fr \
--to=harven@free.fr \
--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.
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).