问题
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