summaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/lisp/php-face.el2
-rw-r--r--.emacs.d/lisp/php-mode.el50
-rw-r--r--.emacs.d/lisp/php-project.el2
-rw-r--r--.emacs.d/lisp/php.el4
4 files changed, 29 insertions, 29 deletions
diff --git a/.emacs.d/lisp/php-face.el b/.emacs.d/lisp/php-face.el
index a674dd4..75bdc81 100644
--- a/.emacs.d/lisp/php-face.el
+++ b/.emacs.d/lisp/php-face.el
@@ -4,7 +4,7 @@
4 4
5;; Author: USAMI Kenta <tadsan@zonu.me> 5;; Author: USAMI Kenta <tadsan@zonu.me>
6;; Created: 5 May 2019 6;; Created: 5 May 2019
7;; Version: 1.21.3 7;; Version: 1.21.4
8;; Keywords: faces, php 8;; Keywords: faces, php
9;; Homepage: https://github.com/emacs-php/php-mode 9;; Homepage: https://github.com/emacs-php/php-mode
10;; Package-Requires: ((emacs "24.3")) 10;; Package-Requires: ((emacs "24.3"))
diff --git a/.emacs.d/lisp/php-mode.el b/.emacs.d/lisp/php-mode.el
index 09d762b..a339e17 100644
--- a/.emacs.d/lisp/php-mode.el
+++ b/.emacs.d/lisp/php-mode.el
@@ -9,14 +9,14 @@
9;; Maintainer: USAMI Kenta <tadsan@zonu.me> 9;; Maintainer: USAMI Kenta <tadsan@zonu.me>
10;; URL: https://github.com/emacs-php/php-mode 10;; URL: https://github.com/emacs-php/php-mode
11;; Keywords: languages php 11;; Keywords: languages php
12;; Version: 1.21.3 12;; Version: 1.21.4
13;; Package-Requires: ((emacs "24.3") (cl-lib "0.5")) 13;; Package-Requires: ((emacs "24.3") (cl-lib "0.5"))
14;; License: GPL-3.0-or-later 14;; License: GPL-3.0-or-later
15 15
16(defconst php-mode-version-number "1.21.3" 16(defconst php-mode-version-number "1.21.4"
17 "PHP Mode version number.") 17 "PHP Mode version number.")
18 18
19(defconst php-mode-modified "2019-05-25" 19(defconst php-mode-modified "2019-05-29"
20 "PHP Mode build date.") 20 "PHP Mode build date.")
21 21
22;; This program is free software; you can redistribute it and/or modify 22;; This program is free software; you can redistribute it and/or modify
@@ -34,32 +34,25 @@
34 34
35;;; Commentary: 35;;; Commentary:
36 36
37;; PHP Mode is a major mode for editing PHP source code. It's an 37;; PHP Mode is a major mode for editing PHP script. It's an extension
38;; extension of C mode; thus it inherits all C mode's navigation 38;; of CC mode; thus it inherits all C mode's navigation functionality.
39;; functionality. But it colors according to the PHP grammar and 39;; But it colors according to the PHP syntax and indents according to the
40;; indents according to the PEAR coding guidelines. It also includes 40;; PSR-2 coding guidelines. It also includes a couple handy IDE-type
41;; a couple handy IDE-type features such as documentation search and a 41;; features such as documentation search and a source and class browser.
42;; source and class browser.
43 42
44;; ## Usage 43;; Please read the manual for setting items compatible with CC Mode.
44;; https://www.gnu.org/software/emacs/manual/html_mono/ccmode.html
45 45
46;; Put this file in your Emacs Lisp path (eg. site-lisp) and add to 46;; This mode is designed for PHP scripts consisting of a single <?php block.
47;; your .emacs file: 47;; We recommend the introduction of Web Mode for HTML and Blade templates combined with PHP.
48;; http://web-mode.org/
48 49
49;; (require 'php-mode) 50;; Modern PHP Mode can be set on a project basis by .dir-locals.el.
51;; Please read php-project.el for details of directory local variables.
50 52
51;; To use abbrev-mode, add lines like this: 53;; If you are using a package manager, you do not need (require 'php-mode) in
52 54;; your ~/.emacs.d/init.el. Read the README for installation instructions.
53;; (add-hook 'php-mode-hook 55;; https://github.com/emacs-php/php-mode
54;; '(lambda () (define-abbrev php-mode-abbrev-table "ex" "extends")))
55
56;; To make php-mode compatible with html-mode, see http://php-mode.sf.net
57
58;; Many options available under Help:Customize
59;; Options specific to php-mode are in
60;; Programming/Languages/PHP
61;; Since it inherits much functionality from c-mode, look there too
62;; Programming/Languages/C
63 56
64;;; Code: 57;;; Code:
65 58
@@ -201,6 +194,12 @@ of constants when set."
201 :tag "PHP Mode Lineup Cascaded Calls" 194 :tag "PHP Mode Lineup Cascaded Calls"
202 :type 'boolean) 195 :type 'boolean)
203 196
197(defcustom php-mode-page-delimiter
198 (eval-when-compile (rx symbol-start (or "namespace" "function" "class" "trait" "interface") symbol-end))
199 "Regexp describing line-beginnings that PHP declaration statements."
200 :group 'php-mode
201 :tag "PHP Mode Page Delimiter"
202 :type 'regexp)
204 203
205(define-obsolete-variable-alias 'php-extra-constants 'php-mode-extra-constants "1.20.0") 204(define-obsolete-variable-alias 'php-extra-constants 'php-mode-extra-constants "1.20.0")
206(defcustom php-mode-extra-constants '() 205(defcustom php-mode-extra-constants '()
@@ -1067,6 +1066,7 @@ After setting the stylevars run hooks according to STYLENAME
1067 (: "/*"))) 1066 (: "/*")))
1068 (* (syntax whitespace))))) 1067 (* (syntax whitespace)))))
1069 (setq-local comment-end "") 1068 (setq-local comment-end "")
1069 (setq-local page-delimiter php-mode-page-delimiter)
1070 1070
1071 (setq-local font-lock-string-face 'php-string) 1071 (setq-local font-lock-string-face 'php-string)
1072 (setq-local font-lock-keyword-face 'php-keyword) 1072 (setq-local font-lock-keyword-face 'php-keyword)
diff --git a/.emacs.d/lisp/php-project.el b/.emacs.d/lisp/php-project.el
index 7ab003e..eb9a50e 100644
--- a/.emacs.d/lisp/php-project.el
+++ b/.emacs.d/lisp/php-project.el
@@ -5,7 +5,7 @@
5;; Author: USAMI Kenta <tadsan@zonu.me> 5;; Author: USAMI Kenta <tadsan@zonu.me>
6;; Keywords: tools, files 6;; Keywords: tools, files
7;; URL: https://github.com/emacs-php/php-mode 7;; URL: https://github.com/emacs-php/php-mode
8;; Version: 1.21.3 8;; Version: 1.21.4
9;; Package-Requires: ((emacs "24.3") (cl-lib "0.5")) 9;; Package-Requires: ((emacs "24.3") (cl-lib "0.5"))
10;; License: GPL-3.0-or-later 10;; License: GPL-3.0-or-later
11 11
diff --git a/.emacs.d/lisp/php.el b/.emacs.d/lisp/php.el
index 13f2cef..336c267 100644
--- a/.emacs.d/lisp/php.el
+++ b/.emacs.d/lisp/php.el
@@ -4,7 +4,7 @@
4 4
5;; Author: USAMI Kenta <tadsan@zonu.me> 5;; Author: USAMI Kenta <tadsan@zonu.me>
6;; Created: 5 Dec 2018 6;; Created: 5 Dec 2018
7;; Version: 1.21.3 7;; Version: 1.21.4
8;; Keywords: languages, php 8;; Keywords: languages, php
9;; Homepage: https://github.com/emacs-php/php-mode 9;; Homepage: https://github.com/emacs-php/php-mode
10;; Package-Requires: ((emacs "24.3") (cl-lib "0.5")) 10;; Package-Requires: ((emacs "24.3") (cl-lib "0.5"))
@@ -107,7 +107,7 @@ You can replace \"en\" with your ISO language code."
107 107
108(defcustom php-template-mode-alist 108(defcustom php-template-mode-alist
109 `(("\\.blade" . ,php-blade-template-major-mode) 109 `(("\\.blade" . ,php-blade-template-major-mode)
110 ("\\.phpt\\'" . ,(if (fboundp 'phpt-mode) 'phpt-mode php-html-template-major-mode)) 110 ("\\.phpt\\'" . ,(if (fboundp 'phpt-mode) 'phpt-mode php-default-major-mode))
111 ("\\.phtml\\'" . ,php-html-template-major-mode)) 111 ("\\.phtml\\'" . ,php-html-template-major-mode))
112 "Automatically use another MAJOR-MODE when open template file." 112 "Automatically use another MAJOR-MODE when open template file."
113 :group 'php 113 :group 'php