I'm trying to add some functionality to someone else's package, and so
I'd like to respect their patterns. Unfortunately, one of these
patterns is to not use
I need to bind a function to
C-S-b, but I can't figure out how. I
know how to do this with a single modifier (e.g.
"\S-b"), but I
can't get it to work with multiple modifiers.
I know I can just
(kbd "C-S-b") and use its output (
), but I'd
like something easier to read.
Here are a few things I've tried:
(define-key emacs-lisp-mode-map "\C-\S-b" 'test-command) ;;; Invalid modifier (define-key emacs-lisp-mode-map [C-S-b] 'test-command) ;;; Does nothing (define-key emacs-lisp-mode-map "\C-B" 'test-command) ;;; Binds C-b