|
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:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |