dot/emacs: Display times in 24-hour clock, please.
[profile] / dot / emacs
index 0903178..d4a313e 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
 ;; Date format fiddling.
 
 (setq european-calendar-style t
-      calendar-date-style 'european)
+      calendar-date-style 'european
+      calendar-time-display-form
+      '(24-hours ":" minutes
+       (if time-zone " (") time-zone (if time-zone ")")))
 
 (setq diary-date-forms '((day "[-/]" month "[^-/0-9]")
                         (day " *" monthname "[ \t]*\\(\^M\\|\n\\)")
 
 (add-hook 'diary-display-hook 'fancy-diary-display)
 (setq diary-list-include-blanks t)
-(add-hook 'list-diary-entries-hook 'include-other-diary-files)
-(add-hook 'mark-diary-entries-hook 'mark-included-diary-files)
+(cond ((mdw-emacs-version-p 23 1)
+       (add-hook 'list-diary-entries-hook 'diary-include-other-diary-files)
+       (add-hook 'mark-diary-entries-hook 'diary-mark-included-diary-files))
+      (t
+       (add-hook 'list-diary-entries-hook 'include-other-diary-files)
+       (add-hook 'mark-diary-entries-hook 'mark-included-diary-files)))
 
 ;; Appointment management.