Function: set-cursor-color
set-cursor-color is an interactive and byte-compiled function defined
in frame.el.gz.
Signature
(set-cursor-color COLOR-NAME)
Documentation
Set the text cursor color of the selected frame to COLOR-NAME.
When called interactively, prompt for the name of the color to use.
This works by setting the cursor-color frame parameter on the
selected frame.
You can also set the text cursor color, for all frames, by
customizing the cursor face.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/frame.el.gz
(defun set-cursor-color (color-name)
"Set the text cursor color of the selected frame to COLOR-NAME.
When called interactively, prompt for the name of the color to use.
This works by setting the `cursor-color' frame parameter on the
selected frame.
You can also set the text cursor color, for all frames, by
customizing the `cursor' face."
(interactive (list (read-color "Cursor color: ")))
(modify-frame-parameters (selected-frame)
(list (cons 'cursor-color color-name))))