Files
memex/0_inbox/in/Scrivener_Emacs_Vim/elpa/evil-terminal-cursor-changer-readme.txt
2026-03-15 14:37:05 -04:00

40 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[![MELPA](http://melpa.org/packages/evil-terminal-cursor-changer-badge.svg)](http://melpa.org/#/evil-terminal-cursor-changer)
## Introduce ##
evil-terminal-cursor-changer is changing cursor shape and color by evil state for evil-mode.
When running in terminal, It's especially helpful to recognize evil's state.
## Install ##
1. Config melpa: http://melpa.org/#/getting-started
2. M-x package-install RET evil-terminal-cursor-changer RET
3. Add code to your emacs config file:for example: ~/.emacs
For Only terminal
(unless (display-graphic-p)
(require 'evil-terminal-cursor-changer))
For All
(require 'evil-terminal-cursor-changer)
If want change cursor shape type, add below line. This is evil's setting.
(setq evil-visual-state-cursor '("red" box)); █
(setq evil-insert-state-cursor '("green" bar)); ⎸
(setq evil-emacs-state-cursor '("blue" hbar)); _
Now, works in XTerm, Gnome Terminal(Gnome Desktop), iTerm(Mac OS
X), Konsole(KDE Desktop), dumb(etc. mintty), Apple
Terminal.app(restrictive supporting). If using Apple Terminal.app,
must install SIMBL(http://www.culater.net/software/SIMBL/SIMBL.php)
and MouseTerm
plus(https://github.com/saitoha/mouseterm-plus/releases) to use
evil-terminal-cursor-changer. That makes to support VT's DECSCUSR
sequence.