all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bind a hotkey to toggle variable
@ 2009-07-11 16:28 tiefeng wu
  2009-07-12 18:27 ` Drew Adams
  0 siblings, 1 reply; 13+ messages in thread
From: tiefeng wu @ 2009-07-11 16:28 UTC (permalink / raw)
  To: help-gnu-emacs

[-- 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 --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-07-14  1:46 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-11 16:28 bind a hotkey to toggle variable tiefeng wu
2009-07-12 18:27 ` 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

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.