help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: global key not binding


From: Joe Corneli
Subject: Re: global key not binding
Date: Wed, 10 Aug 2005 08:41:43 -0500

   Hello

   (global-set-key "\C-cb" "\C-xh\M-w") ;copy buffer C-c b
   (global-set-key "\C-cb" "\C-xh\M-w") ;copy buffer C-c p

   I get symbol function definition is void ...

That is to be expected.

,----
| global-set-key is an interactive compiled Lisp function in `subr'.
| (global-set-key key command)
| 
| Give key a global binding as command.
`----

Try

(global-set-key "\C-cb" (lambda ()
                          (interactive)
                          (copy-region-as-kill (point-min)
                                               (point-max))))







reply via email to

[Prev in Thread] Current Thread [Next in Thread]