To work i think all those conditionals is causing the slowness in the cursor for me. I should probably turn this into a proper minor mode, but for now this seems You can change the colors and cursor types by modifying the various ( add-hook 'post-command-hook 'djcb-set-cursor-according-to-mode) ( setq cursor-type djcb-normal-cursor-type)))) ( setq cursor-type djcb-overwrite-cursor-type)) ( setq cursor-type djcb-read-only-cursor-type)) "change cursor color and type according to some minor modes." ( defun djcb-set-cursor-according-to-mode () valid values are t, nil, box, hollow, bar, (bar. Change cursor color according to mode inspired by In overwrite-mode and it becomes a gray vertical bar when you're in Yellow vertical bar during normal mode, it becomes a red block when you're However, I want to be able to control both the cursor colorĪnd cursor shape, and also distinguish between overwrite, read-only andīy putting the following snippet in your. There are some existing ways to do this, described in EmacsWiki. Some small visual cue, for example by changing the cursor color or style? Information is available in the mode-line – but wouldn't it be nicer to get Overwrite-mode, in read-only-mode, or in normal insert-mode. When typing some text, it's often useful to know what mode we're in – are we in
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |