help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Minibuffer selection that changes cursor-type


From: carlmarcos
Subject: Re: Minibuffer selection that changes cursor-type
Date: Sun, 12 Jun 2022 13:21:18 +0200 (CEST)

Jun 12, 2022, 10:31 by help-gnu-emacs@gnu.org:

> Would like to change cursor-type by selecting type in the minibuffer.  What 
> can I do?
>
Started like this, Need to select from minibuffer to call the set-default 
commands.

(defun cursort ()
  ""
  (interactive)
  (completing-read "Chose one: "
                   '(("find-file" . 'find-file)
                     ("switch-to-buffer" . 'switch-to-buffer))))

  (set-default 'cursor-type 'box)
  (set-default 'cursor-type 'hollow)
  (set-default 'cursor-type 'bar)
  (set-default 'cursor-type 'hbar))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]