Function: calendar-set-date-style
calendar-set-date-style is an interactive and byte-compiled function
defined in calendar.el.gz.
Signature
(calendar-set-date-style STYLE)
Documentation
Set the style of calendar and diary dates to STYLE (a symbol).
The valid styles are described in the documentation of calendar-date-style.
Probably introduced at or before Emacs version 23.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/calendar.el.gz
(defun calendar-set-date-style (style)
"Set the style of calendar and diary dates to STYLE (a symbol).
The valid styles are described in the documentation of `calendar-date-style'."
(interactive (list (intern
(completing-read (format-prompt "Date style" "american")
'("american" "european" "iso") nil t
nil nil "american"))))
(or (memq style '(american european iso))
(setq style 'american))
(setq calendar-date-style style
calendar-date-display-form
(symbol-value (intern-soft
(format "calendar-%s-date-display-form" style)))
calendar-month-header
(symbol-value (intern-soft (format "calendar-%s-month-header" style)))
diary-date-forms
(symbol-value (intern-soft (format "diary-%s-date-forms" style))))
(calendar-redraw)
(calendar-update-mode-line))