branch: elpa/drupal-mode
commit 3ba088c8124654df11de1924a1baa5f17e67a5ad
Author: Thomas Fini Hansen <[email protected]>
Commit: Thomas Fini Hansen <[email protected]>
No need for make-local-variable.
---
drupal/flycheck.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drupal/flycheck.el b/drupal/flycheck.el
index 9099ba2177..2602486ca5 100644
--- a/drupal/flycheck.el
+++ b/drupal/flycheck.el
@@ -50,7 +50,6 @@ so no need to highlight it twice."
drupal/phpcs-standard)
;; Set the coding standard to "Drupal" (we checked that it is
;; supported above.
- (set (make-local-variable 'flycheck-phpcs-standard) drupal/phpcs-standard)
(when drupal/flycheck-phpcs-js-and-css
(if (and (apply 'derived-mode-p (append drupal-css-modes
drupal-js-modes))
@@ -59,6 +58,7 @@ so no need to highlight it twice."
(set (make-local-variable 'flycheck-checker) 'css-js-phpcs)
)
)
+ (set 'flycheck-phpcs-standard drupal/phpcs-standard)
;; Flycheck will also highlight trailing whitespace as an
;; error so no need to highlight it twice.