emacskeyboard-shortcutshaskell-mode

Some shortcuts don't work on emacs beginning with C-c


In Haskell-mode, the shortcut C-c C-= is defined to do something.

Trying this shortcut, I realized that emacs do not recognize the shortcut C-c C-=.

Indeed, when I try the shortcut on emacs, the buffer write C-c = is not defined although I pressed C- C-=. I have the same problem with some other symbols like '.' or '§'. But shortcuts like C-c C-l or C-c C-c work.

I try to remove my .emacs but I have the same problem.

a friend have the same problem as me.

Both we are on ArchLinux (64 bits) and we use emacs in console. The keyboard is an azerty.

The problem come from emacs ? Arch Linux ?


Solution

  • Your terminal can't send Emacs C-= so you can't use that key sequence. (Emacs would recognise it if it received it, but that won't happen.)

    Your options are:

    With that last option, you can use a sequence your terminal can send to fake a sequence that it can't send.
    C-cC-= would become C-cC-x@c=

    If you really wanted to use that last option, you can set a custom binding to simplify the sequence (may be necessary in some instances to avoid conflicting with existing sequences). See the end of https://stackoverflow.com/a/24804434/324105 for more information.