Skip to content

Commit

Permalink
fix #22
Browse files Browse the repository at this point in the history
  • Loading branch information
xcwen committed Jun 16, 2016
1 parent 31755fd commit d00063c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ac-php-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@
(require 'dash)

(defvar ac-php-php-executable (executable-find "php") )
(defvar ac-php-ctags-executable (concat (file-name-directory load-file-name) "phpctags"))
(defvar ac-php-ctags-executable (concat (file-name-directory load-file-name)
(if (string= system-type "windows-nt")
"phpctags.bat"
"phpctags")
))


(defvar ac-php-cache1-file-count 10)

Expand Down
3 changes: 3 additions & 0 deletions phpctags.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off
set phpctags=%~dp0\phpctags
php "%phpctags%" %1

0 comments on commit d00063c

Please sign in to comment.