* emacs and window placement
@ 2009-07-11 14:04 henry atting
2009-07-11 16:24 ` tiefeng wu
0 siblings, 1 reply; 3+ messages in thread
From: henry atting @ 2009-07-11 14:04 UTC (permalink / raw)
To: help-gnu-emacs
Not specifically an emacs problem but a problem that occurs with emacs
solely as far as I see:
Running gnome/compiz I want to start emacs on viewport one. I tried it
with devilspie and the window placement plugin from compiz. Wheras any
other program starts on its assigned viewport emacs does not -- or more
exactly it starts on its viewport but then switches automatically to the
one which is opened.
As emacs is the only program that behaves this way maybe I can get here
a hint thereto.
henry
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: emacs and window placement
2009-07-11 14:04 emacs and window placement henry atting
@ 2009-07-11 16:24 ` tiefeng wu
2009-07-12 18:25 ` Drew Adams
0 siblings, 1 reply; 3+ messages in thread
From: tiefeng wu @ 2009-07-11 16:24 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--7-12
[-- Attachment #2: Type: text/html, Size: 541 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: emacs and window placement
2009-07-11 16:24 ` tiefeng wu
@ 2009-07-12 18:25 ` Drew Adams
0 siblings, 0 replies; 3+ messages in thread
From: Drew Adams @ 2009-07-12 18:25 UTC (permalink / raw)
To: 'tiefeng wu', help-gnu-emacs
> 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)))"
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'.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-07-12 18:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-11 14:04 emacs and window placement henry atting
2009-07-11 16:24 ` tiefeng wu
2009-07-12 18:25 ` Drew Adams
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.