Skip to content

Commit 1151b8d

Browse files
committed
Modify README
1 parent dc31c32 commit 1151b8d

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

README.org

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ Emacs interface to [[https://github.com/phpstan/phpstan][PHPStan]], includes che
1515
** How to use
1616
*** For Flycheck user
1717
#+BEGIN_SRC emacs-lisp
18-
(defun my-php-mode-hook ()
18+
(defun my-php-mode-setup ()
1919
"My PHP-mode hook."
2020
(require 'flycheck-phpstan)
21-
(flycheck-mode t)
22-
(flycheck-select-checker 'phpstan))
21+
(flycheck-mode t))
2322

24-
(add-hook 'php-mode-hook 'my-php-mode-hook)
23+
(add-hook 'php-mode-hook 'my-php-mode-setup)
2524
#+END_SRC
2625

2726
*** For Flymake user

flycheck-phpstan.el

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@
2828
;;
2929
;; Put the following into your .emacs file (~/.emacs.d/init.el)
3030
;;
31-
;; (defun my-php-mode-hook ()
31+
;; (defun my-php-mode-setup ()
3232
;; "My PHP-mode hook."
3333
;; (require 'flycheck-phpstan)
34-
;; (flycheck-mode t)
35-
;; (flycheck-select-checker 'phpstan))
34+
;; (flycheck-mode t))
3635
;;
37-
;; (add-hook 'php-mode-hook 'my-php-mode-hook)
36+
;; (add-hook 'php-mode-hook 'my-php-mode-setup)
3837
;;
3938

4039

phpstan.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
;; Please read the README for these details.
3434
;; https://github.com/emacs-php/phpstan.el/blob/master/README.org
3535
;;
36-
;; If you are a Flycheck user, activate it by selecting `phpstan`
37-
;; with `M-x flycheck-select-checker'.
36+
;; If you are a Flycheck user, install `flycheck-phpstan' package.
3837
;;
3938
;; ## Directory local variables
4039
;;

0 commit comments

Comments
 (0)