diff options
| author | Simen Heggestøyl | 2017-12-16 09:49:54 +0100 |
|---|---|---|
| committer | Simen Heggestøyl | 2017-12-17 10:26:04 +0100 |
| commit | bd9e8b31a1a38a2ffa5c2ff5e805a42ffccc36ec (patch) | |
| tree | 441203fb603da9188c2b96171abafbbffe0c8bac /etc | |
| parent | ac0d6c06b805b8f05a854a69639531bf737fea3f (diff) | |
| download | emacs-bd9e8b31a1a38a2ffa5c2ff5e805a42ffccc36ec.tar.gz emacs-bd9e8b31a1a38a2ffa5c2ff5e805a42ffccc36ec.zip | |
Add command for cycling between CSS color formats
* lisp/textmodes/css-mode.el (css-mode-map): Add keybinding for
'css-cycle-color-format'.
(css--rgb-color): Add support for extracting alpha component.
(css--hex-alpha, css--color-to-4-dpc, css--named-color-to-hex)
(css--format-rgba-alpha, css--hex-to-rgb)
(css--rgb-to-named-color-or-hex): New functions.
(css-cycle-color-format): New command for cycling between color
formats.
* test/lisp/textmodes/css-mode-tests.el (css-test-color-to-4-dpc):
(css-test-named-color-to-hex, css-test-format-rgba-alpha)
(css-test-hex-to-rgb, css-test-rgb-to-named-color-or-hex)
(css-test-cycle-color-format, css-test-hex-alpha): New tests for the
changes mentioned above.
* etc/NEWS: Mention the new command.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -77,6 +77,13 @@ whether '"' is also replaced in 'electric-quote-mode'. If non-nil, | |||
| 77 | 77 | ||
| 78 | * Changes in Specialized Modes and Packages in Emacs 27.1 | 78 | * Changes in Specialized Modes and Packages in Emacs 27.1 |
| 79 | 79 | ||
| 80 | ** CSS mode | ||
| 81 | |||
| 82 | --- | ||
| 83 | *** A new command 'css-cycle-color-format' for cycling between color | ||
| 84 | formats (e.g. "black" => "#000000" => "rgb(0, 0, 0)") has been added, | ||
| 85 | bound to 'C-c C-f'. | ||
| 86 | |||
| 80 | ** Dired | 87 | ** Dired |
| 81 | 88 | ||
| 82 | +++ | 89 | +++ |