all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: tiefeng wu <icebergwtf@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: bind a hotkey to toggle variable
Date: Sun, 12 Jul 2009 00:28:36 +0800	[thread overview]
Message-ID: <4314c1f70907110928j2b12bc95v51e4c785a9fee6f2@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 385 bytes --]

hello all!I'm trying to bind f6 key to toggle 'pop-up-frames' variable by
insert following line in my .emacs file:

(global-set-key [f6] (lambda () (setq pop-up-frames (not pop-up-frames)))

and after restart emacs and press f6, emacs says "Wrong type argument:
commandp, (lambda nil (setq pop-up-frames (not pop-up-frames)))"

please give me some help, thanks!

tiefeng wu
2009-07-12

[-- Attachment #2: Type: text/html, Size: 526 bytes --]

             reply	other threads:[~2009-07-11 16:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-11 16:28 tiefeng wu [this message]
2009-07-12 18:27 ` bind a hotkey to toggle variable Drew Adams
     [not found]   ` <4314c1f70907121936r6a74003aya2bb42b1bfb56d35@mail.gmail.com>
2009-07-13  3:12     ` tiefeng wu
2009-07-13  6:50       ` Drew Adams
2009-07-13  8:24         ` Peter Dyballa
2009-07-13  8:47           ` Drew Adams
2009-07-13  9:15             ` Peter Dyballa
2009-07-13 15:02               ` Drew Adams
2009-07-13  9:10         ` tiefeng wu
     [not found]       ` <mailman.2406.1247467827.2239.help-gnu-emacs@gnu.org>
2009-07-13 10:10         ` Miles Bader
2009-07-13 11:06           ` Peter Dyballa
2009-07-13 15:02           ` Drew Adams
     [not found]           ` <mailman.2432.1247497373.2239.help-gnu-emacs@gnu.org>
2009-07-14  1:46             ` Miles Bader

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=4314c1f70907110928j2b12bc95v51e4c785a9fee6f2@mail.gmail.com \
    --to=icebergwtf@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.