all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

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.