Function: todo-edit-mode

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

Signature

(todo-edit-mode)

Documentation

Major mode for editing multiline todo items.

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

C-x C-q todo-edit-quit

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/todo-mode.el.gz
(define-derived-mode todo-edit-mode text-mode "Todo-Ed"
  "Major mode for editing multiline todo items."
  (todo-modes-set-1)
  (setq-local indent-line-function #'todo-indent)
  (if (> (buffer-size) (- (point-max) (point-min)))
      ;; Editing one item in an indirect buffer, so buffer-file-name is nil.
      (setq-local todo-current-todo-file todo-global-current-todo-file)
    ;; When editing archive file, make sure it is current todo file.
    (setq-local todo-current-todo-file (file-truename (buffer-file-name)))
    ;; Need this when editing the whole file to return to the category
    ;; editing was invoked from.
    (setq-local todo-categories (todo-set-categories)))
  (setq buffer-read-only nil))