Variable: diary-face-attrs

diary-face-attrs is a customizable variable defined in diary-lib.el.gz.

Value

((" *\\[foreground:\\([-a-z]+\\)\\] *" 1 :foreground string)
 (" *\\[background:\\([-a-z]+\\)\\] *" 1 :background string)
 (" *\\[width:\\([-a-z]+\\)\\] *" 1 :width symbol)
 (" *\\[height:\\([.0-9]+\\)\\] *" 1 :height int)
 (" *\\[weight:\\([-a-z]+\\)\\] *" 1 :weight symbol)
 (" *\\[slant:\\([-a-z]+\\)\\] *" 1 :slant symbol)
 (" *\\[underline:\\([-a-z]+\\)\\] *" 1 :underline stringtnil)
 (" *\\[overline:\\([-a-z]+\\)\\] *" 1 :overline stringtnil)
 (" *\\[strike-through:\\([-a-z]+\\)\\] *" 1 :strike-through stringtnil)
 (" *\\[inverse-video:\\([-a-z]+\\)\\] *" 1 :inverse-video tnil)
 (" *\\[face:\\([-0-9a-z]+\\)\\] *" 1 :face string)
 (" *\\[font:\\([-a-z0-9]+\\)\\] *" 1 :font string))

Documentation

Alist of (REGEXP SUBEXP ATTRIBUTE TYPE) elements.

This is used by diary-pull-attrs to fontify certain diary elements. REGEXP is a regular expression to for, and SUBEXP is the numbered sub-expression to extract. diary-glob-file-regexp-prefix is prepended to REGEXP for file-wide specifiers. ATTRIBUTE specifies which face attribute (e.g. :foreground) to modify, or that this is a face (:face) to apply. TYPE is the type of attribute being applied. Available TYPES (see diary-attrtype-convert) are: string, symbol, int, tnil, stringtnil.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/diary-lib.el.gz
;; Face markup of calendar and diary displays: Any entry line that
;; ends with [foo:value] where foo is a face attribute (except :box
;; :stipple) or with [face:blah] tags, will have these values applied
;; to the calendar and fancy diary displays.  These attributes "stack"
;; on calendar displays.  File-wide attributes can be defined as
;; follows: the first line matching "^# [tag:value]" defines the value
;; for that particular tag.
(defcustom diary-face-attrs
  '((" *\\[foreground:\\([-a-z]+\\)\\] *" 1 :foreground string)
    (" *\\[background:\\([-a-z]+\\)\\] *" 1 :background string)
    (" *\\[width:\\([-a-z]+\\)\\] *" 1 :width symbol)
    (" *\\[height:\\([.0-9]+\\)\\] *" 1 :height int)
    (" *\\[weight:\\([-a-z]+\\)\\] *" 1 :weight symbol)
    (" *\\[slant:\\([-a-z]+\\)\\] *" 1 :slant symbol)
    (" *\\[underline:\\([-a-z]+\\)\\] *" 1 :underline stringtnil)
    (" *\\[overline:\\([-a-z]+\\)\\] *" 1 :overline stringtnil)
    (" *\\[strike-through:\\([-a-z]+\\)\\] *" 1 :strike-through stringtnil)
    (" *\\[inverse-video:\\([-a-z]+\\)\\] *" 1 :inverse-video tnil)
    (" *\\[face:\\([-0-9a-z]+\\)\\] *" 1 :face string)
    (" *\\[font:\\([-a-z0-9]+\\)\\] *" 1 :font string)
    ;; Unsupported.
;;;    (" *\\[box:\\([-a-z]+\\)\\]$" 1 :box)
;;;    (" *\\[stipple:\\([-a-z]+\\)\\]$" 1 :stipple)
    )
  "Alist of (REGEXP SUBEXP ATTRIBUTE TYPE) elements.
This is used by `diary-pull-attrs' to fontify certain diary
elements.  REGEXP is a regular expression to for, and SUBEXP is
the numbered sub-expression to extract.  `diary-glob-file-regexp-prefix'
is prepended to REGEXP for file-wide specifiers.  ATTRIBUTE
specifies which face attribute (e.g. `:foreground') to modify, or
that this is a face (`:face') to apply.  TYPE is the type of
attribute being applied.  Available TYPES (see `diary-attrtype-convert')
are: `string', `symbol', `int', `tnil', `stringtnil'."
  :type '(repeat (list (regexp :tag "Regular expression")
                       (integer :tag "Sub-expression")
                       (symbol :tag "Attribute (e.g. :foreground)")
                       (choice (const :value string :tag "A string")
                               (const :value symbol :tag "A symbol")
                               (const :value int    :tag "An integer")
                               (const :value tnil   :tag "t or nil")
                               (const :value stringtnil
                                      :tag "A string, t, or nil"))))
  :group 'diary)