Skip to content

Commit

Permalink
Change default color syntax for replace and insert commands
Browse files Browse the repository at this point in the history
Add :color-syntax-system-default option and change the default to 'css.
  • Loading branch information
misohena committed Feb 16, 2025
1 parent 4a5fe47 commit 46f7e13
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion edraw-color-picker.el
Original file line number Diff line number Diff line change
Expand Up @@ -2751,6 +2751,11 @@ The following options can be specified:
`:color-syntax-system'
: One of the symbols stored in the `edraw-color-syntax-systems'
variable. Specifies the language used to represent colors.
If nil, it will be automatically detected.

`:color-syntax-system-default'
: The color syntax system to use if it cannot be determined
automatically when :color-syntax-system is nil.

Other options passed to the color picker object."
:group 'edraw-color-picker
Expand Down Expand Up @@ -3310,7 +3315,9 @@ of input changes."
('css 'css)
('emacs 'emacs))
(edraw-color-syntax-system-default
(or default-syntax-system 'emacs))))
(or default-syntax-system
(alist-get :color-syntax-system-default options)
'css))))

(defun edraw-color-picker-color-to-string (color options)
"Convert COLOR edraw-color object to string.
Expand Down

0 comments on commit 46f7e13

Please sign in to comment.