help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bind a hotkey to toggle variable


From: tiefeng wu
Subject: bind a hotkey to toggle variable
Date: Sun, 12 Jul 2009 00:28:36 +0800

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]