I would like to bind M-S-up
to C-u 7 S-up
to move a timestamp a week forward (and down
for back). A modification of this answer resulted in a "Symbol is void" error in Emacs.
I tried modifying the define-keys
command, but was not successful, as Emacs then stated that "-up" could not follow after "M-S".
How can I configure a keybinding in my ~/.emacs
file to execute C-u 7 S-up
?
Update
I placed the following, modified from the answer linked above, in the scratch buffer and evaluated it:
(define-key my-map (kbd "C-u 7 S-up") (kbd "M-S-up"))
Emacs returned Symbol's value as variable is void: my-map
.
C-h k
orC-h c
and then use the syntax it shows you in yourkbd
arguments.C-h k
followed by pressing Meta Shift Up returns<M-S-up> is undefined
, as expected.<M-S-up>
is already mapped in Org-mode, so it's best to choose a different binding.)