(set-cursor-color): New function.
authormorioka <morioka>
Mon, 26 Oct 1998 16:05:54 +0000 (16:05 +0000)
committermorioka <morioka>
Mon, 26 Oct 1998 16:05:54 +0000 (16:05 +0000)
poe-xemacs.el

index 3391278..7ca74b8 100644 (file)
 
 ;;; Code:
 
+;;; @ color
+;;;
+
+(defun-maybe set-cursor-color (color-name)
+  "Set the text cursor color of the selected frame to COLOR.
+When called interactively, prompt for the name of the color to use.
+To get the frame's current cursor color, use `frame-parameters'."
+  (interactive "sColor: ")
+  (set-frame-property (selected-frame) 'cursor-color
+                      (if (color-instance-p color-name)
+                          color-name
+                        (make-color-instance color-name))))
+
+
 ;;; @ face
 ;;;