[問題] emacs 的問題

看板Linux作者時間15年前 (2011/01/08 01:58), 編輯推噓1(103)
留言4則, 4人參與, 最新討論串1/1
不好意思,因為 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 我在網路上看到有人這樣定 (存檔那部分),所以我想知道這是我電腦的問題嗎? 如果不是,問題出在哪邊呢?? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 80.119.77.240

01/08 01:58, , 1F
如果不適合在這發問此類問題,我在刪除
01/08 01:58, 1F

01/08 12:46, , 2F
不會不適合阿,大多是vim文章,但是還是編輯器咩。
01/08 12:46, 2F

01/08 19:45, , 3F
try ((global-set-key (kbd "C-S") 'write-file)
01/08 19:45, 3F

07/09 10:41, , 4F
Try this (global-set-key "\C-S" 'write-file)
07/09 10:41, 4F
文章代碼(AID): #1D9rGlMt (Linux)