aboutsummaryrefslogtreecommitdiff
path: root/evil-vars.el
diff options
context:
space:
mode:
authorEvgeni Kolev <evgenysw@gmail.com>2017-02-12 09:41:05 +0200
committerEivind Fonn <evfonn@gmail.com>2017-03-23 19:32:58 +0100
commitc42dd5bed9fa400cd54de7236b4483b041554e4c (patch)
tree601947b62497816fa61f920c6c6de900f99a2634 /evil-vars.el
parent9a73fac1ad37e1f1643057fd810c3bce45da4e9e (diff)
Add customizable variable `evil-want-abbrev-expand-on-insert-exit`.
When non-nil (which is default) the `expand-abbrev` will be called in a `evil-insert-state-exit-hook` hook. This is in-line with Vim's behaviour.
Diffstat (limited to 'evil-vars.el')
-rw-r--r--evil-vars.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/evil-vars.el b/evil-vars.el
index 1d2c606..94a6789 100644
--- a/evil-vars.el
+++ b/evil-vars.el
@@ -1180,6 +1180,12 @@ command is non-zero."
:type 'boolean
:group 'evil)
+(defcustom evil-want-abbrev-expand-on-insert-exit t
+ "If non-nil abbrevs will be expanded when leaving Insert state
+like in Vim. This variable is read only on load."
+ :type 'boolean
+ :group 'evil)
+
;;; Variables
(defmacro evil-define-local-var (symbol &optional initvalue docstring)