We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 193e27b commit 1ca4885Copy full SHA for 1ca4885
phpactor.el
@@ -133,6 +133,13 @@ have to ensure a compatible version of phpactor is used."
133
(prog1
134
(setq phpactor-executable (phpactor--find-executable))
135
(remove-hook 'compilation-finish-functions #'phpactor-reset-executable)))
136
+
137
+(defun phpactor-ensure-executable ()
138
+ "Ensure `phpactor' command installed."
139
+ (interactive)
140
+ (unless (and phpactor-executable (file-exists-p phpactor-executable))
141
+ (phpactor-install-or-update)
142
+ (phpactor-reset-executable)))
143
144
;; Utility functions
145
0 commit comments