Function: diary-mode
diary-mode is an autoloaded, interactive and byte-compiled function
defined in diary-lib.el.gz.
Signature
(diary-mode)
Documentation
Major mode for editing the diary file.
This mode runs the hook diary-mode-hook, as the final or penultimate
step during initialization.
C-c C-q quit-window
C-c C-s diary-show-all-entries
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/diary-lib.el.gz
;;;###autoload
(define-derived-mode diary-mode fundamental-mode "Diary"
"Major mode for editing the diary file."
(setq-local font-lock-defaults '(diary-font-lock-keywords t))
(setq-local comment-start diary-comment-start)
(setq-local comment-end diary-comment-end)
(add-to-invisibility-spec '(diary . nil))
(add-hook 'after-save-hook #'diary-redraw-calendar nil t)
;; In case the file was modified externally, refresh the calendar
;; after refreshing the diary buffer.
(add-hook 'after-revert-hook #'diary-redraw-calendar nil t)
(if diary-header-line-flag
(setq header-line-format diary-header-line-format)))