* quick syntax problem
@ 2010-04-19 14:39 Matt Price
2010-04-19 19:28 ` Peter Dyballa
0 siblings, 1 reply; 2+ messages in thread
From: Matt Price @ 2010-04-19 14:39 UTC (permalink / raw)
To: help-gnu-emacs
hi,
i don't quite understand what's wrong with this:
(global-set-key "\C-c\M-0" '(write-abbrev-file "~/.emacs.d/abbrev_defs"))
i have a very difficult time understanding lisp syntactical rules --
what's the most straightforward way evaluate a command with more than
one word in it? Thanks very much,
Matt
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: quick syntax problem
2010-04-19 14:39 quick syntax problem Matt Price
@ 2010-04-19 19:28 ` Peter Dyballa
0 siblings, 0 replies; 2+ messages in thread
From: Peter Dyballa @ 2010-04-19 19:28 UTC (permalink / raw)
To: Matt Price; +Cc: help-gnu-emacs
Am 19.04.2010 um 16:39 schrieb Matt Price:
> i don't quite understand what's wrong with this:
> (global-set-key "\C-c\M-0" '(write-abbrev-file "~/.emacs.d/
> abbrev_defs"))
You are not allowed to bind a key sequence to some Lisp statement...
Either create a function with fset and bind this one to your key or
start your Lisp statement with
(lambda () (interactive) (...))
--
Greetings
Pete
"Evolution" o __o _o _
°\___o /0~ -\<, ^\___ /=\\_/-%
oo~_______ /\ /\______/ \_________O/ O_______________o===>-->O--o____
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-19 19:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-19 14:39 quick syntax problem Matt Price
2010-04-19 19:28 ` 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).