[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
- bind a hotkey to toggle variable,
tiefeng wu <=
- RE: bind a hotkey to toggle variable, Drew Adams, 2009/07/12
- Message not available
- Re: bind a hotkey to toggle variable, tiefeng wu, 2009/07/13
- RE: bind a hotkey to toggle variable, Drew Adams, 2009/07/13
- Re: bind a hotkey to toggle variable, Peter Dyballa, 2009/07/13
- RE: bind a hotkey to toggle variable, Drew Adams, 2009/07/13
- Re: bind a hotkey to toggle variable, Peter Dyballa, 2009/07/13
- RE: bind a hotkey to toggle variable, Drew Adams, 2009/07/13
- Re: bind a hotkey to toggle variable, tiefeng wu, 2009/07/13
- Message not available
- Re: bind a hotkey to toggle variable, Miles Bader, 2009/07/13
- Re: bind a hotkey to toggle variable, Peter Dyballa, 2009/07/13