I'm trying to teach Emacs standard shortcut keys. I use emacs23-nox version from Debian, often through SSH connection. One of those is Ctrl+Shift+S for SaveAs. The relevant part of configuration looks like this:
(global-set-key (kbd "C-S") 'write-file) (global-set-key (kbd "C-s") 'save-buffer)
but causes either both Ctrl+Shift+S and Ctrl+S invoke 'save-buffer
(or 'write-file
, depending on which line comes last). I also tried "C-S-s"
instead of "C-S"
.
No Use of Shift Key section of Why Emacs's Keyboard Shortcuts Are Painful says it's not possible. I read this answer, but the accepted solution doesn't work for me (C-h k Ctrl+Shift+S prints C-s).
Is there a way to make Emacs (the no GUI version) differentiate between Ctrl+Shift+S and Ctrl+S?