From: tiefeng wu <icebergwtf@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: bind a hotkey to toggle variable
Date: Mon, 13 Jul 2009 11:12:05 +0800 [thread overview]
Message-ID: <4314c1f70907122012j638e717cw984a0defd893455f@mail.gmail.com> (raw)
In-Reply-To: <4314c1f70907121936r6a74003aya2bb42b1bfb56d35@mail.gmail.com>
I think it's better move discussion of my question here to not bother
henry - poster of thread "emacs and window placement", sorry again!
2009/7/13 Drew Adams <drew.adams@oracle.com>:
> What you bind to a key must be a command. For a function to be a command, it
> must have an `interactive' spec. So you need this:
>
> (global-set-key [f6]
> (lambda () (interactive) (setq pop-up-frames (not pop-up-frames)))
>
> See the Elisp manual, node `Defining Commands'.
>
thanks Adams, I'll read the manual carefully.
btw, I'm using your elisp library and having my pop-up-frames variable
default setting to t,
Recently I'm trying IDE-like 'nav' mode from google code, and the
setting of pop-up-frames
starts conflict with nav, because for 'nav' it's better open files in
same frame. So this question
occured.
tiefeng wu
2009-07-13
next prev parent reply other threads:[~2009-07-13 3:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=4314c1f70907122012j638e717cw984a0defd893455f@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.