I want to unbind some keys in the org agenda display with use-package. I did the following:
(use-package org
:ensure t
:pin gnu
:config
(define-key org-agenda-mode-map (kbd "<C-S-right>") nil)
(define-key org-agenda-mode-map (kbd "<C-S-left>") nil)
(define-key org-agenda-mode-map (kbd "<C-S-up>") nil)
(define-key org-agenda-mode-map (kbd "<C-S-down>") nil))
However, this does not work. I get the message Error (use-package): org/:config: Symbol’s value as variable is void: org-agenda-mode-map
. So why does this fail and what is the trick to get this working?