emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil-nerd-commenter 7557777d8f 103/235: Try to require evi


From: ELPA Syncer
Subject: [nongnu] elpa/evil-nerd-commenter 7557777d8f 103/235: Try to require evil when compiling
Date: Thu, 6 Jan 2022 02:59:39 -0500 (EST)

branch: elpa/evil-nerd-commenter
commit 7557777d8fb8b7d66291c5115484fddcce8c297d
Author: Tom Willemse <tom@ryuslash.org>
Commit: Tom Willemse <tom@ryuslash.org>

    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"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]