[php] Add phpunit test key bindings
This commit is contained in:
parent
901b1ad6e4
commit
1f0e41d7c2
|
@ -2264,6 +2264,11 @@ Other:
|
||||||
=spacemacs/perltidy-format-function= to move the point and window to their
|
=spacemacs/perltidy-format-function= to move the point and window to their
|
||||||
original locations.
|
original locations.
|
||||||
**** PHP
|
**** PHP
|
||||||
|
- Key bindings:
|
||||||
|
- Added =phpunit= test key bindings (thanks to duianto):
|
||||||
|
- ~SPC m t t~ =phpunit-current-test=
|
||||||
|
- ~SPC m t c~ =phpunit-current-class=
|
||||||
|
- ~SPC m t p~ =phpunit-current-project=
|
||||||
- Fixes:
|
- Fixes:
|
||||||
- Added company-php (thanks to jim and Eivind Fonn)
|
- Added company-php (thanks to jim and Eivind Fonn)
|
||||||
- Fixed php-company autocompletion (thanks to Dela Anthonio)
|
- Fixed php-company autocompletion (thanks to Dela Anthonio)
|
||||||
|
|
|
@ -58,7 +58,15 @@
|
||||||
:mode ("\\.php\\'" . php-mode))
|
:mode ("\\.php\\'" . php-mode))
|
||||||
:init
|
:init
|
||||||
(progn
|
(progn
|
||||||
(add-hook 'php-mode-hook 'spacemacs//php-setup-backend)))
|
(add-hook 'php-mode-hook 'spacemacs//php-setup-backend))
|
||||||
|
:config
|
||||||
|
(progn
|
||||||
|
(spacemacs/declare-prefix-for-mode 'php-mode "mg" "goto")
|
||||||
|
(spacemacs/declare-prefix-for-mode 'php-mode "mt" "tests")
|
||||||
|
(spacemacs/set-leader-keys-for-major-mode 'php-mode
|
||||||
|
"tt" 'phpunit-current-test
|
||||||
|
"tc" 'phpunit-current-class
|
||||||
|
"tp" 'phpunit-current-project)))
|
||||||
|
|
||||||
(defun php/init-phpcbf ()
|
(defun php/init-phpcbf ()
|
||||||
(use-package phpcbf
|
(use-package phpcbf
|
||||||
|
|
Loading…
Reference in a new issue