aboutsummaryrefslogtreecommitdiff
path: root/evil-vars.el
diff options
context:
space:
mode:
authorFrank Fischer <frank-fischer@shadow-soft.de>2016-06-04 16:55:14 +0200
committerFrank Fischer <frank-fischer@shadow-soft.de>2016-06-04 16:55:14 +0200
commitf70a1b7203861a5eb0cddb0043450a455eb94870 (patch)
treec9b8b4e55614b827660c99a773e3dbc0dc44b0a1 /evil-vars.el
parenta259dfa5db8e9ebb295d3eeb8eb07f806b08eac0 (diff)
Add forcing default cursor of current state.
The variable `evil-force-cursor` can be set to a state symbol so that the current default cursor is changed to the specified state. This can be used to ensure that subsequent calls to `evil-refresh-cursor` use the cursor in `evil-force-cursor` instead of the states default cursor.
Diffstat (limited to 'evil-vars.el')
-rw-r--r--evil-vars.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/evil-vars.el b/evil-vars.el
index 682f466..48e527b 100644
--- a/evil-vars.el
+++ b/evil-vars.el
@@ -186,6 +186,9 @@ cursor, or a list of the above."
:type '(set symbol (cons symbol symbol) string function)
:group 'evil)
+(defvar evil-force-cursor nil
+ "Overwrite the current states default cursor.")
+
(defcustom evil-repeat-move-cursor t
"Whether \"\\<evil-normal-state-map>\\[evil-repeat]\" \
moves the cursor."