How to assign newline functionality in Ubuntu Jaunty to Enter directly?

北城余情 提交于 2019-12-13 02:33:16

问题


In Ubuntu Jaunty the Enter key is apparently translated to Ctrl-m symbol. I'd like to free Ctrl-m symbol from newline functionality to make it available for other commands. In this case I guess I should translate Enter to newline directly. How do I do that?

I'm talking about key reassignment in gnome-terminal.


回答1:


(global-set-key (kbd "<return>") 'newline)



来源:https://stackoverflow.com/questions/2299142/how-to-assign-newline-functionality-in-ubuntu-jaunty-to-enter-directly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!