Keybinding To The Same Letter Both Lowercase And Uppercase

This post explains how to keybind to the same letter both lowercase and uppercase. But I missed the detail that you must use the same syntax for both keybindings.

This works.

(global-set-key [(control meta ?p)] #'help/insert-datestamp)
(global-set-key [(control meta shift ?p)] #'help/insert-timestamp*-no-colons)

On my box, sometimes this fails and sometimes it works so I stick with the previous syntax all of the time now.

(global-set-key (kbd "C-M-p") #'help/insert-datestamp)
(global-set-key [(control meta shift ?p)] #'help/insert-timestamp*-no-colons)

Leave a Reply

Your email address will not be published. Required fields are marked *