* Brain cramp re: global-set-key
@ 2009-07-17 21:17 William Case
2009-07-17 21:35 ` Peter Dyballa
0 siblings, 1 reply; 2+ messages in thread
From: William Case @ 2009-07-17 21:17 UTC (permalink / raw)
To: Emacs Help List
Hi;
Wiped out my ~/.emacs ! Figured it was about time to re-write it
anyways.
I have been able to reproduce most of my key bindings, but I can't get
the following to work.
(global-set-key [(control f1)] (find-file-other-window "~/.emacs")t)
I keep getting:
Debugger entered--Lisp error: (wrong-number-of-arguments #[(key
command)
God knows I have been searching info, emacs wiki,
http://www.nongnu.org/emacs-tiny-tools/keybindings/ and every where else
I can think of. Been at it for a couple of hours now.
Help would be greatly appreciated.
--
Regards Bill
Fedora 11, Gnome 2.26.3
Evo.2.26.3, Emacs 22.3.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Brain cramp re: global-set-key
2009-07-17 21:17 Brain cramp re: global-set-key William Case
@ 2009-07-17 21:35 ` Peter Dyballa
0 siblings, 0 replies; 2+ messages in thread
From: Peter Dyballa @ 2009-07-17 21:35 UTC (permalink / raw)
To: William Case; +Cc: Emacs Help List
Am 17.07.2009 um 23:17 schrieb William Case:
> (global-set-key [(control f1)] (find-file-other-window "~/.emacs")t)
(global-set-key [(control f1)] (lambda () (interactive) (find-file-
other-window "~/.emacs")))
Or write an interactive function which does (find-file-other-window
"~/.emacs") and bind that to C-F1.
--
Greetings
Pete
The day Microsoft makes something that doesn't suck is the day they
start selling vacuum cleaners.
– Ernest Jan Plugge
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-17 21:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-17 21:17 Brain cramp re: global-set-key William Case
2009-07-17 21:35 ` Peter Dyballa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).