Variable: list-colors-sort
list-colors-sort is a customizable variable defined in facemenu.el.gz.
Value
nil
Documentation
Color sort order for list-colors-display.
nil means default implementation-dependent order (defined in x-colors).
name sorts by color name.
rgb sorts by red, green, blue components.
(rgb-dist . COLOR) sorts by the RGB distance to the specified color.
hsv sorts by hue, saturation, value.
(hsv-dist . COLOR) sorts by the HSV distance to the specified color
and excludes grayscale colors.
luminance sorts by relative luminance in the CIE XYZ color space.
This variable was added, or its default value changed, in Emacs 24.1.
Probably introduced at or before Emacs version 24.1.
Source Code
;; Defined in /usr/src/emacs/lisp/facemenu.el.gz
(defcustom list-colors-sort nil
"Color sort order for `list-colors-display'.
nil means default implementation-dependent order (defined in `x-colors').
`name' sorts by color name.
`rgb' sorts by red, green, blue components.
`(rgb-dist . COLOR)' sorts by the RGB distance to the specified color.
`hsv' sorts by hue, saturation, value.
`(hsv-dist . COLOR)' sorts by the HSV distance to the specified color
and excludes grayscale colors.
`luminance' sorts by relative luminance in the CIE XYZ color space."
:type '(choice (const :tag "Unsorted" nil)
(const :tag "Color Name" name)
(const :tag "Red-Green-Blue" rgb)
(cons :tag "Distance on RGB cube"
(const :tag "Distance from Color" rgb-dist)
(color :tag "Source Color Name"))
(const :tag "Hue-Saturation-Value" hsv)
(cons :tag "Distance on HSV cylinder"
(const :tag "Distance from Color" hsv-dist)
(color :tag "Source Color Name"))
(const :tag "Luminance" luminance))
:group 'facemenu
:version "24.1")