简体   繁体   中英

Meta Key Cancels Ctrl in Emacs

I am trying to override Control - Meta - Down Arrow and Control - Meta - Up Arrow in emacs.

I've tried all sorts of combinations of: (global-set-key [CM-down] 'function) and: "\\C-\\M-<down>" etc... but it always says: ESC undefined . This means it is only taking into account the M-<down> . Why is it ignoring the Control ?? I've been working on this for 3 hours and emacs online documentation with regards to key bindings is surprisingly absolutely terrible.

When using Emacs in the terminal (which you mentioned in a comment), you are limited to the key sequences that the terminal is capable of. Unfortunately, C-down is not one of them...

Some versions of Emacs on Mac OS X have had problems with the qualifier keys. Try to update it to a newer version.

I tested this on an Emacs built from the source archive, and it works as intended. (In this case, it simply says that function is not defined, which is what expected.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM