Function: todo-mode

todo-mode is an autoloaded, interactive and byte-compiled function defined in todo-mode.el.gz.

Signature

(todo-mode)

Documentation

Major mode for displaying, navigating and editing todo lists.

In addition to any hooks its parent mode special-mode might have run, this mode runs the hook todo-mode-hook, as the final or penultimate step during initialization.

# todo-set-item-priority
* todo-toggle-mark-item
A c todo-choose-archive
A d todo-archive-done-item
A f todo-find-archive
C * todo-mark-category
C a todo-add-category
C e k todo-edit-category-diary-nonmarking
C e y todo-edit-category-diary-inclusion
C g todo-merge-category
C k todo-delete-category
C m todo-move-category
C r todo-rename-category
C t s todo-set-top-priorities-in-category
C u todo-unmark-category
C v todo-toggle-view-done-items
F H todo-toggle-item-highlighting
F N todo-toggle-prefix-numbers
F V todo-toggle-view-done-only
F a todo-add-file
F c todo-show-categories-table
F e todo-edit-file
F f todo-find-filtered-items-file
F h todo-toggle-item-header
F k todo-delete-file
F r todo-rename-file
F t m todo-filter-top-priorities-multifile
F t s todo-set-top-priorities-in-file
F t t todo-filter-top-priorities
F x m todo-filter-regexp-items-multifile
F x x todo-filter-regexp-items
F y m todo-filter-diary-items-multifile
F y y todo-filter-diary-items
H todo-toggle-item-highlighting
N todo-toggle-prefix-numbers
P B todo-print-buffer(var)/todo-print-buffer(fun)
P F todo-print-buffer-to-file
S todo-search
V todo-toggle-view-done-only
X todo-clear-matches
b todo-backward-category
d todo-item-done
e todo-edit-item
f todo-forward-category
h todo-toggle-item-header
i todo-insert-item
j todo-jump-to-category
k todo-delete-item
l todo-lower-item-priority
m todo-move-item
n todo-next-item
p todo-previous-item
q todo-quit
r todo-raise-item-priority
s todo-save
t todo-show
u todo-item-undone
v todo-toggle-view-done-items

Probably introduced at or before Emacs version 21.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/todo-mode.el.gz
;;;###autoload
(define-derived-mode todo-mode special-mode "Todo"
  "Major mode for displaying, navigating and editing todo lists."
  (if (called-interactively-p 'any)
      (message "%s"
               (substitute-command-keys
                "Type `\\[todo-show]' to enter Todo mode"))
    (todo-modes-set-1)
    (todo-modes-set-2)
    (todo-modes-set-3)
    ;; Initialize todo-current-todo-file.
    (when (member (file-truename (buffer-file-name))
		  (funcall todo-files-function))
      (setq-local todo-current-todo-file (file-truename (buffer-file-name))))
    (setq-local todo-show-done-only nil)
    (setq-local todo-categories-with-marks nil)
    ;; (add-hook 'find-file-hook #'todo-add-to-buffer-list nil t)
    (add-hook 'post-command-hook #'todo-update-buffer-list nil t)
    (when todo-show-current-file
      (add-hook 'pre-command-hook #'todo-show-current-file nil t))
    (add-hook 'window-configuration-change-hook
	      #'todo-reset-and-enable-done-separator nil t)
    (add-hook 'kill-buffer-hook #'todo-reset-global-current-todo-file nil t)))