[Top][All Lists]

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

Re: C-x right

From: Lennart Borgman (gmail)
Subject: Re: C-x right
Date: Tue, 25 Dec 2007 14:20:54 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20071031 Thunderbird/ Mnenhy/

Nikola Skoric wrote:
I'd like to bind C-x right to bury-buffer. I just can't find manual
section which describes who to do that. I've tried:
(global-set-key [\C-x right] 'bury-buffer)
(global-set-key [C-x right] 'bury-buffer)
(global-set-key "\C-x<right>" 'bury-buffer)
but nothing works. I figured out how to bind normal keys, but I just
can't figure out arrows...

Vector format:

(global-set-key [?\C-x right] (lambda () (interactive) (lwarn t :warning "hi")))

(global-set-key [(control ?x) right] (lambda () (interactive) (lwarn t :warning "hi2")))

Personally I find the second form easier to read.

reply via email to

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