Function: todo-categories-mode

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

Signature

(todo-categories-mode)

Documentation

Major mode for displaying and editing todo categories.

# todo-set-category-number
<backtab> todo-previous-button
<tab> todo-next-button
a todo-sort-categories-by-archived
c todo-sort-categories-alphabetically-or-numerically
d todo-sort-categories-by-done
l todo-lower-category
n todo-next-button
p todo-previous-button
q todo-quit
r todo-raise-category
t todo-sort-categories-by-todo
y todo-sort-categories-by-diary

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

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/todo-mode.el.gz
(define-derived-mode todo-categories-mode special-mode "Todo-Cats"
  "Major mode for displaying and editing todo categories.

\\{todo-categories-mode-map}"
  (setq-local todo-current-todo-file todo-global-current-todo-file)
  (setq-local todo-categories
	      ;; Can't use find-buffer-visiting when
	      ;; `todo-show-categories-table' is called on first
	      ;; invocation of `todo-show', since there is then no
	      ;; buffer visiting the current file.
              (with-current-buffer (find-file-noselect
                                    todo-current-todo-file 'nowarn)
                todo-categories)))