2

I use the shortcut C-, with the window version of emacs.

(global-set-key (kbd "C-,") 'dabbrev-expand)

My problem is that this shortcut does not work in the console version of emacs.

I've tried many things (.inputrc, set bind-tty-special-chars off, bind command in .bashrc) but nothing seems to work; I never manage to receive something with this combination of keys.

I've managed to bind other non standards shortcuts like Ctrl-<left-arrow>.

1 Answer 1

2

Control-Comma does not map to a control character in the system keyboard map. Therefore, it is sent to applications as just a comma. Terminal then sends this comma to the tty, where Emacs receives it. If you want Control-Comma to map to a control character or other sequence that Emacs can distinguish from a normal comma, you'll have to alter the system keyboard map. Doing so is left as an exercise for the reader.

1
  • Do you any clue for the best way to "alter the system keyboard map" on MacOSX
    – fxbois
    Oct 30, 2011 at 16:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.