emacs 的問題 - Linux

Table of Contents

不好意思,因為 editor 版大部分都是 vim 的文章,所以來這邊碰碰運氣。

我已在網路上找過和在國外論壇上發問過,不過沒有得到解決的方法。

我的問題,當我想用

(global-set-key (kbd "C-s") 'save-buffer)
(global-set-key (kbd "C-S-s") 'write-file)

時,當我按下 control+shift+s 時,總是沒有作用。

另外一個例子是,

(global-set-key [(control shift right)] 'other-window) and

(global-set-key [(control shift left)] 'other-window)


(不是同時定義,是分開來的,一次一次試)

會有作用,但

(global-set-key [(control shift up)] 'other-window) and

(global-set-key [(control shift down)] 'other-window)


我感覺好像是在我電腦,control + shift + 某些鍵 其實等於 control + 某些鍵,

(比如說 s, up, down) ,但不是全部都這樣 (例如 right 和 left)

我用 C-q 去找 control + shift + up ,會沒有反應。( down 也是)

control + shift + left 得到 ^[[1;6D

control + shift + right 得到 ^[[1;6C

我在網路上看到有人這樣定 (存檔那部分),所以我想知道這是我電腦的問題嗎?

如果不是,問題出在哪邊呢??

--

All Comments

Isabella avatarIsabella2011-01-10
如果不適合在這發問此類問題,我在刪除
Barb Cronin avatarBarb Cronin2011-01-13
不會不適合阿,大多是vim文章,但是還是編輯器咩。
Victoria avatarVictoria2011-01-15
try ((global-set-key (kbd "C-S") 'write-file)
Linda avatarLinda2011-01-17
Try this (global-set-key "\C-S" 'write-file)