branch: elpa/evil-nerd-commenter
commit 7557777d8fb8b7d66291c5115484fddcce8c297d
Author: Tom Willemse <[email protected]>
Commit: Tom Willemse <[email protected]>
Try to require evil when compiling
If evil is not loaded during compilation the evil-specific code will not
work if evil is loaded later on as it seems the evil operator doesn't
get defined.
---
evil-nerd-commenter.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/evil-nerd-commenter.el b/evil-nerd-commenter.el
index 0d9dc0d253..1ab800a95f 100644
--- a/evil-nerd-commenter.el
+++ b/evil-nerd-commenter.el
@@ -85,6 +85,9 @@
;;; Code:
+(eval-when-compile
+ (require 'evil nil :noerror))
+
;; Example, press ",,a{" will change C code:
;; {printf("hello");} => /* {printf("hello");}*/
;; google "vim text object for more syntax"