branch: externals/phpinspect
commit bbc37bea324c0bd5a7995aa50ce9d95765723a61
Author: Kenta Usami <[email protected]>
Commit: Hugo Thunnissen <[email protected]>
Update README code format and to use setq-local
setq-local was added in Emacs 24.3 (released in 2013).
---
README.md | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index afc6d2a9e6..3e80ef399b 100644
--- a/README.md
+++ b/README.md
@@ -7,20 +7,19 @@ Example config:
```elisp
;;;###autoload
(defun my-php-personal-hook ()
- (set (make-local-variable 'company-minimum-prefix-length) 0)
- (set (make-local-variable 'company-tooltip-align-annotations) t)
- (set (make-local-variable 'company-idle-delay) 0.1)
- (set (make-local-variable 'company-backends) '(phpinspect-company-backend))
+ (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-uses-interactive)
-
+
;; 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)
+(add-hook 'php-mode-hook #'my-php-personal-hook)
```