Function: org-habit-toggle-display-in-agenda
org-habit-toggle-display-in-agenda is an interactive and byte-compiled
function defined in org-habit.el.gz.
Signature
(org-habit-toggle-display-in-agenda ARG)
Documentation
Toggle display of habits in agenda.
With ARG toggle display of all vs. undone scheduled habits.
See org-habit-show-all-today.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-habit.el.gz
(defun org-habit-toggle-display-in-agenda (arg)
"Toggle display of habits in agenda.
With ARG toggle display of all vs. undone scheduled habits.
See `org-habit-show-all-today'."
(interactive "P")
(if (not arg)
(org-habit-toggle-habits)
(org-agenda-check-type t 'agenda)
(setq org-habit-show-all-today (not org-habit-show-all-today))
(when org-habit-show-habits (org-agenda-redo))))