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: Baloff
Subject: Re: global key not binding
Date: 11 Aug 2005 05:12:19 +1000
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Joe Corneli <address@hidden> writes:

>    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.
>

why then this work:
(Global-set-key "\C-cl" "address@hidden") ;copy ling C-c l

 
> ,----
> | 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]