1

I would like to be able to create a new cursor shape, that is, a new possible value for option cursor-type -- for example an I shape. Is there a way to do that, similar to the fringe cursor bitmap?

3
  • Does this answer your question? emacs.stackexchange.com/questions/392/…
    – harlandski
    Commented Jun 2, 2023 at 6:00
  • I have not played with the Emacs internals for the past few years, but when I did play, it was specifically geared towards creating a prototype of additional / fake cursors on the three major platforms of GUI Emacs implementations. At that time, there were only the built-in cursor types described when calling C-h v RET cursor-type RET. I created a draft proof concept of a new cursor type called a framed_box, but there was no interest by the Emacs developmental team. There is no Ishaped cursor built-in to the internals, and custom cursor types are not available to the user to create.
    – lawlist
    Commented Jun 2, 2023 at 7:15
  • emacs.stackexchange.com/questions/392/… just does the internal cursors, and I wanted to create a new shape.
    – Dave
    Commented Jun 2, 2023 at 17:37

1 Answer 1

1

Option cursor-type is defined in C code, not Lisp. I'm afraid it's essentially impossible to do what you request (modulo reimplementing code, including C code, and rebuilding Emacs.

And the option choices are pretty much hard-coded in multiple parts of the Emacs Lisp code -- see library cus-start.el, for example.

That's just for choosing and setting the symbol value of the option. But the code that implements each such choice is likely in the Emacs display engine, which is coded in C.

Your best bet is to request an additional cursor type, using M-x report-emacs-bug. You can include your bitmap or whatever in the request.

1
  • 1
    That's great info. I was just trying to re-create the acme editor look with emacs to help my old eyes. The colour theme was kindly provided by someone but I couldn't get a comfortable cursor, as I found the bar too thin to see easily.
    – Dave
    Commented Jun 3, 2023 at 6:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.