You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hugo Thunnissen
0c0c1ca381
continuous-integration/drone/push Build was killed
Details
|
2 years ago | |
---|---|---|
test | 2 years ago | |
.drone.yml | 2 years ago | |
.gitignore | 3 years ago | |
COPYING | 3 years ago | |
README.md | 2 years ago | |
phpinspect-autoload.el | 2 years ago | |
phpinspect-buffer.el | 2 years ago | |
phpinspect-cache.el | 2 years ago | |
phpinspect-class.el | 2 years ago | |
phpinspect-fs.el | 2 years ago | |
phpinspect-imports.el | 2 years ago | |
phpinspect-index.el | 2 years ago | |
phpinspect-parser.el | 2 years ago | |
phpinspect-project.el | 2 years ago | |
phpinspect-serialize.el | 2 years ago | |
phpinspect-type.el | 2 years ago | |
phpinspect-util.el | 2 years ago | |
phpinspect-worker.el | 2 years ago | |
phpinspect.el | 2 years ago |
README.md
phpinspect.el
WIP. More documentation is in the making.
Example config
;;;###autoload
(defun my-php-personal-hook ()
;; It is important to enable `company-mode' before setting
;; the variables below.
(company-mode)
(setq-local company-minimum-prefix-length 0)
(setq-local company-tooltip-align-annotations t)
(setq-local company-idle-delay 0.1)
(setq-local company-backends '(phpinspect-company-backend))
;; Shortcut to add use statements for classes you use.
(define-key php-mode-map (kbd "C-c u") 'phpinspect-fix-imports)
;; Shortcuts to quickly search/open files of PHP classes.
(global-set-key (kbd "C-c a") 'phpinspect-find-class-file)
(global-set-key (kbd "C-c c") 'phpinspect-find-own-class-file)
(phpinspect-mode))
(add-hook 'php-mode-hook #'my-php-personal-hook)
Install
git clone https://git.snorba.art/hugo/phpinspect.el ~/projects/phpinspect.el
(add-to-list 'load-path "~/projects/phpinspect.el")
(require 'phpinspect)
Development
Running tests
Tests are implemented using ert
. You can run them in batch mode with the following
command:
emacs -L ./ -batch -l ert -l ./phpinspect.el -l ./test/phpinspect-test.el -f ert-run-tests-batch-and-exit