[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode 11e151a 382/405: Fixed linting issues in flyc
From: |
Stefan Monnier |
Subject: |
[elpa] externals/phps-mode 11e151a 382/405: Fixed linting issues in flycheck file |
Date: |
Sat, 13 Jul 2019 10:00:57 -0400 (EDT) |
branch: externals/phps-mode
commit 11e151afb79b4d93376b6e310751341c6a7e3e1f
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>
Fixed linting issues in flycheck file
---
README.md | 7 +++++--
phps-mode-flycheck.el | 3 ++-
phps-mode-test-functions.el | 2 +-
phps-mode.el | 6 +++++-
4 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 3b9c7b9..aa4e05a 100644
--- a/README.md
+++ b/README.md
@@ -100,11 +100,14 @@ make clean
Download to `~/.emacs.d/phps-mode/` and then add this to your init file:
-### Using use-package
+### Using use-package with flycheck support
``` emacs-lisp
(add-to-list 'load-path (expand-file-name "~/.emacs.d/phps-mode/"))
(use-package phps-mode
- :mode ("\\.php\\'" "\\.phtml\\'"))
+ :after flycheck
+ :mode ("\\.php\\" "\\.phtml\\")
+ :config
+ (setq phps-mode-flycheck-support t))
```
diff --git a/phps-mode-flycheck.el b/phps-mode-flycheck.el
index f9de0f9..c2a0965 100644
--- a/phps-mode-flycheck.el
+++ b/phps-mode-flycheck.el
@@ -1,6 +1,6 @@
;;; phps-mode-flycheck.el --- Flycheck support for PHPs -*- lexical-binding: t
-*-
-;; Copyright (C) 2018 Christian Johansson
+;; Copyright (C) 2018-2019 Christian Johansson
;; This file is not part of GNU Emacs.
@@ -28,6 +28,7 @@
;;; Code:
+(require 'flycheck)
(defun phps-mode-flycheck-init ()
"Add flycheck support for PHP Semantic mode."
diff --git a/phps-mode-test-functions.el b/phps-mode-test-functions.el
index bbabaa4..904b5ef 100644
--- a/phps-mode-test-functions.el
+++ b/phps-mode-test-functions.el
@@ -953,7 +953,7 @@
(defun phps-mode-test-functions ()
"Run test for functions."
- ;; (setq debug-on-error t)
+ (setq debug-on-error t)
;; (setq phps-mode-functions-verbose t)
(phps-mode-test-functions-get-lines-indent-if)
(phps-mode-test-functions-get-lines-indent-classes)
diff --git a/phps-mode.el b/phps-mode.el
index b890e3d..9d74de5 100644
--- a/phps-mode.el
+++ b/phps-mode.el
@@ -58,6 +58,9 @@
(defvar phps-mode-idle-interval 1.0
"Idle seconds before running incremental lexer.")
+(defvar phps-mode-flycheck-support nil
+ "Boolean whether flycheck support should be enabled or not.")
+
(define-derived-mode phps-mode prog-mode "PHPs"
"Major mode for PHP with Semantic integration."
@@ -74,7 +77,8 @@
;; (phps-mode-flymake-init)
;; Flycheck
- (phps-mode-flycheck-init)
+ (when phps-mode-flycheck-support
+ (phps-mode-flycheck-init))
;; Override functions
(phps-mode-functions-init)
- [elpa] externals/phps-mode 5f52f54 395/405: Fixed compilation warning after new imenu structure, (continued)
- [elpa] externals/phps-mode 5f52f54 395/405: Fixed compilation warning after new imenu structure, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 192f9ae 391/405: Fix issues with test list structure, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 21f883e 396/405: Updated README and copyright date, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode f0912ee 398/405: Removed TODO and changed syntax color to be based on tokens only, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 47793f7 402/405: Updated README, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 2d2aaad 388/405: Added failing unit test, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode fa47a17 390/405: Changed imenu index to a hierarchical structure, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode d05601b 387/405: Updated documents, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 07d9176 403/405: Improved flycheck support, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 1d58896 400/405: Minimal mode map is now loaded, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 11e151a 382/405: Fixed linting issues in flycheck file,
Stefan Monnier <=
- [elpa] externals/phps-mode 808f679 401/405: Moved TODO to separate doc and improved syntax coloring, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode f5c2072 405/405: Updated copyright for inclusion in ELPA, Stefan Monnier, 2019/07/13