How to turn off alternative Enter with Ctrl+M in Linux

前端 未结 8 844
广开言路
广开言路 2021-02-04 06:37

Why is Ctrl+M bound to Enter in Ubuntu Jaunty? How to turn it off?

I\'m using Emacs and would like to bind Ctrl+M to some other command.

8条回答
  •  无人及你
    2021-02-04 07:02

    (global-set-key (kbd "C-m") 'cmd) ;

    Where cmd is your command should remap control m...

    As for why ctrl+m is bound to enter. I believe it had something to do with some older keyboard not having enter,tab, backspace, etc... ( I could be grossly mistaken)

    For example ctrl+h is backspace, some unix operating systems will output ^H when you hit backspace on them!

提交回复
热议问题