Cursor type in Emacs

Chetan picture Chetan · Sep 8, 2010 · Viewed 7.1k times · Source

What do I put in my .emacs file to change the cursor type for all frames to box?

Answer

Jérôme Radix picture Jérôme Radix · Sep 9, 2010

Before Emacs 23.2, you should do :

(setq default-cursor-type 'box)

Be careful, default-cursor-type is a variable that is obsolete since Emacs 23.2. You should use cursor-type variable instead :

(set-default 'cursor-type 'box)