By default, C-_
runs the command undo
(found in global-map
). It also runs org-agenda-undo
when in Agenda view.
As I use cua-mode
, I undo changes with C-z
. My issue is that it doesn't work in Agenda View. I tried to bind org-agenda-undo
with C-z
:
(define-key org-agenda-mode-map (kbd "C-z") 'org-agenda-undo)
or
(use-package org-agenda
:ensure nil
:bind
("C-z" . org-agenda-undo))
But it didn't work. How can I do it without altering cua-mode
behavior?