branch: elpa/aidermacs
commit 58593dd57f3318e43af4040318e25886f73ac382
Author: Guillermo VayĆ” <[email protected]>
Commit: GitHub <[email protected]>

    feat: Add helm feature check before overriding aider-read-string (#75)
    
    * feat: Add helm feature check before overriding aider-read-string
    
    * show hint to install helm
    
    ---------
    
    Co-authored-by: Kang Tu <[email protected]>
---
 aider-helm.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/aider-helm.el b/aider-helm.el
index 60c0fad8f8..f6083fa206 100644
--- a/aider-helm.el
+++ b/aider-helm.el
@@ -54,7 +54,10 @@ INITIAL-INPUT is optional initial input string."
 
 ;;;###autoload
 (with-eval-after-load 'aider
-  (defalias 'aider-read-string 'aider-helm-read-string))
+  (if (featurep 'helm)
+    (defalias 'aider-read-string 'aider-helm-read-string)
+    (message "Helm is not available. Please install helm package to use 
aider-helm features")
+    ))
 
 (provide 'aider-helm)
 ;;; aider-helm.el ends here

Reply via email to