I want to use keyboard when selecting a date in calendar (while setting deadline or schedule in org mode).
The cursor is set to nil and it's not visible where the cursor is.
I've tracked down the code
(org-eval-in-calendar '(setq cursor-type nil) t)
in the org.el file.
Similar question has been asked (https://emacs.stackexchange.com/a/53717/12031)
and some history about it. (https://list.orgmode.org/87d36uip6p.fsf@gnu.org/)
How should I go about changing the behavior of this code?
I tried :around
and :after
. with error (if: Wrong type argument: stringp, (25816 61424))
I guess something wrong with my code
(defun my-org-read-date (orig-fn &rest args)
(progn
;; (apply orig-fn args)
(apply 'org-read-date args)
(org-eval-in-calendar '(setq cursor-type t) t)
)
)
(advice-remove 'org-read-date #'my-org-read-date)
(advice-add 'org-read-date :around #'my-org-read-date)
(defun my-cursor ()
(org-eval-in-calendar '(setq cursor-type 'bar) t)
)
(defun my-cursor2 ()
(setq cursor-type 'bar)
)
(add-hook 'calendar-mode-hook
(define-key calendar-mode-map (kbd "!") 'my-cursor2)
)