Search code examples
emacselispkey-bindings

emacs-nox 'C-,' & 'C-.' keybindings not working


I've got a couple emacs keybindings as follows:

(global-set-key (kbd "C-,") 'beginning-of-buffer)
(global-set-key (kbd "C-.") 'end-of-buffer)

Recently, I realized these don't work in emacs-nox. Is it is possible to get them working, or is this just a limitation of emacs-nox?


Solution

  • By popular demand:

    It's probably a limitation of your terminal.

    Most terminals I've used don't send any keycodes at all for C-, and C-..

    You can check this by executing M-x describe-key (usually bound to C-h k), and then typing C-, and/or C-.. If Emacs does nothing when you hit the keys, it's your terminal.