diff options
| author | Wouter Bolsterlee <wouter@bolsterl.ee> | 2016-09-09 22:40:08 +0200 |
|---|---|---|
| committer | Wouter Bolsterlee <wouter@bolsterl.ee> | 2016-09-09 22:40:08 +0200 |
| commit | 9a7ab545dd2d10be5ed8abfc2d77b03fc05518e2 (patch) | |
| tree | 31e28690cad0c36161c0655ab6be1d530d1554be /evil-surround.el | |
| parent | 3e4baf7e203adbb1a57cbb372db17edf1f3a2b90 (diff) | |
Add explicit autoload definitions to avoid implicit evil dependency
A plain autoload cookie does not work correclty for functions defined
with evil-define-command, since that depends on evil being loaded, which
is not the case when the autoload file is process during Emacs startup.
Fixes #82.
Diffstat (limited to 'evil-surround.el')
| -rwxr-xr-x | evil-surround.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/evil-surround.el b/evil-surround.el index 10873c6..3fdfc8b 100755 --- a/evil-surround.el +++ b/evil-surround.el @@ -166,7 +166,7 @@ See also `evil-surround-outer-overlay'." (evil-expand-range range) range))) -;;;###autoload +;;;###autoload (autoload 'evil-surround-delete "evil-surround" nil t) (evil-define-command evil-surround-delete (char &optional outer inner) "Delete the surrounding delimiters represented by CHAR. Alternatively, the text to delete can be represented with @@ -190,7 +190,7 @@ between these overlays is what is deleted." (when outer (delete-overlay outer)) (when inner (delete-overlay inner))))))) -;;;###autoload +;;;###autoload (autoload 'evil-surround-change "evil-surround" nil t) (evil-define-command evil-surround-change (char &optional outer inner) "Change the surrounding delimiters represented by CHAR. Alternatively, the text to delete can be represented with the |
