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

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

Re: Key binding problem


From: address@hidden
Subject: Re: Key binding problem
Date: 26 Feb 2007 08:54:22 -0800
User-agent: G2/1.0

Thank you very much weber, it works perfectly.

Alternatively, I have just discovered that using the kbd macro works
fine also e.g.
   (local-set-key (kbd "C-|") 'indent-region)

Don't ask me why I never tried it before since I was already using it
for the newline-and-indent binding. I guess that sometimes things are
just too obvious or you're just too stupid...

Anyways, thanks again for your help!
Jean

On 26 fév, 17:12, "Lennart Borgman (gmail)"
<address@hidden> wrote:
> weber wrote:
> >>   (local-set-key [C-|] 'indent-region)
>
> Try
>
> (local-set-key [(control ?|)] (lambda() (interactive) (message "Hi from
> C-|")))




reply via email to

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