@@ -144,13 +144,14 @@ http://www.gnu.org/licenses/ for details.")
144
144
(set (make-local-variable 'imenu-syntax-alist )
145
145
'((" +-*/.<>=?!$%_&~^:" . " w" ))))
146
146
147
- (when (fboundp 'helm )
148
- (require 'helm )
149
147
150
- (defun racket-helm-apropos-init ()
151
- (with-current-buffer (helm-candidate-buffer 'global )
152
- (dolist (elem (racket--eval/sexpr " ,apropos" ))
153
- (insert (car elem) " \n " ))))
148
+ (when (require 'helm nil 't )
149
+
150
+ (when (fboundp 'helm-candidate-buffer )
151
+ (defun racket-helm-apropos-init ()
152
+ (with-current-buffer (helm-candidate-buffer 'global )
153
+ (dolist (elem (racket--eval/sexpr " ,apropos" ))
154
+ (insert (car elem) " \n " )))))
154
155
155
156
(defun racket-helm-apropos-match-part (candidate )
156
157
candidate)
@@ -166,10 +167,11 @@ http://www.gnu.org/licenses/ for details.")
166
167
(match-part . racket-helm-apropos-match-part)
167
168
(action . racket-helm-apropos-action)))
168
169
169
- (defun racket-helm-apropos ()
170
- " Equivalent of helm-apropos but for the racket installed documentation"
171
- (interactive )
172
- (helm :sources 'helm-source-racket-apropos :buffer " *helm racket apropos*" )))
170
+ (when (fboundp 'helm )
171
+ (defun racket-helm-apropos ()
172
+ " Equivalent of helm-apropos but for the racket installed documentation"
173
+ (interactive )
174
+ (helm :sources 'helm-source-racket-apropos :buffer " *helm racket apropos*" ))))
173
175
174
176
;;;### autoload
175
177
(define-derived-mode racket-mode prog-mode
0 commit comments