diff options
| author | Evgeni Kolev <evgenysw@gmail.com> | 2017-02-12 09:41:05 +0200 |
|---|---|---|
| committer | Eivind Fonn <evfonn@gmail.com> | 2017-03-23 19:32:58 +0100 |
| commit | c42dd5bed9fa400cd54de7236b4483b041554e4c (patch) | |
| tree | 601947b62497816fa61f920c6c6de900f99a2634 /evil-integration.el | |
| parent | 9a73fac1ad37e1f1643057fd810c3bce45da4e9e (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-integration.el')
| -rw-r--r-- | evil-integration.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/evil-integration.el b/evil-integration.el index a6b5f96..79558ea 100644 --- a/evil-integration.el +++ b/evil-integration.el @@ -552,4 +552,9 @@ Based on `evil-enclose-ace-jump-for-motion'." (provide 'evil-integration) +;;; abbrev.el +(when evil-want-abbrev-expand-on-insert-exit + (eval-after-load 'abbrev + '(add-hook 'evil-insert-state-exit-hook 'expand-abbrev))) + ;;; evil-integration.el ends here |
