diff options
Diffstat (limited to '.emacs.d/lisp/php-project.el')
| -rw-r--r-- | .emacs.d/lisp/php-project.el | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/.emacs.d/lisp/php-project.el b/.emacs.d/lisp/php-project.el index d478d9e..53275b9 100644 --- a/.emacs.d/lisp/php-project.el +++ b/.emacs.d/lisp/php-project.el | |||
| @@ -5,8 +5,8 @@ | |||
| 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/ejmr/php-mode | 7 | ;; URL: https://github.com/ejmr/php-mode |
| 8 | ;; Version: 1.19.0 | 8 | ;; Version: 1.19.1 |
| 9 | ;; Package-Requires: ((emacs "24") (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 | ||
| 12 | ;; This program is free software; you can redistribute it and/or modify | 12 | ;; This program is free software; you can redistribute it and/or modify |
| @@ -88,7 +88,7 @@ | |||
| 88 | 88 | ||
| 89 | ;;;###autoload | 89 | ;;;###autoload |
| 90 | (progn | 90 | (progn |
| 91 | (defvar php-project-root 'auto | 91 | (defvar-local php-project-root 'auto |
| 92 | "Method of searching for the top level directory. | 92 | "Method of searching for the top level directory. |
| 93 | 93 | ||
| 94 | `auto' (default) | 94 | `auto' (default) |
| @@ -101,42 +101,37 @@ STRING | |||
| 101 | A file/directory name of top level marker. | 101 | A file/directory name of top level marker. |
| 102 | If the string is an actual directory path, it is set as the absolute path | 102 | If the string is an actual directory path, it is set as the absolute path |
| 103 | of the root directory, not the marker.") | 103 | of the root directory, not the marker.") |
| 104 | (make-variable-buffer-local 'php-project-root) | ||
| 105 | (put 'php-project-root 'safe-local-variable | 104 | (put 'php-project-root 'safe-local-variable |
| 106 | #'(lambda (v) (or (stringp v) (assq v php-project-available-root-files))))) | 105 | #'(lambda (v) (or (stringp v) (assq v php-project-available-root-files))))) |
| 107 | 106 | ||
| 108 | ;;;###autoload | 107 | ;;;###autoload |
| 109 | (progn | 108 | (progn |
| 110 | (defvar php-project-bootstrap-scripts nil | 109 | (defvar-local php-project-bootstrap-scripts nil |
| 111 | "List of path to bootstrap php script file. | 110 | "List of path to bootstrap php script file. |
| 112 | 111 | ||
| 113 | The ideal bootstrap file is silent, it only includes dependent files, | 112 | The ideal bootstrap file is silent, it only includes dependent files, |
| 114 | defines constants, and sets the class loaders.") | 113 | defines constants, and sets the class loaders.") |
| 115 | (make-variable-buffer-local 'php-project-bootstrap-scripts) | ||
| 116 | (put 'php-project-bootstrap-scripts 'safe-local-variable #'php-project--eval-bootstrap-scripts)) | 114 | (put 'php-project-bootstrap-scripts 'safe-local-variable #'php-project--eval-bootstrap-scripts)) |
| 117 | 115 | ||
| 118 | ;;;###autoload | 116 | ;;;###autoload |
| 119 | (progn | 117 | (progn |
| 120 | (defvar php-project-php-executable nil | 118 | (defvar-local php-project-php-executable nil |
| 121 | "Path to php executable file.") | 119 | "Path to php executable file.") |
| 122 | (make-variable-buffer-local 'php-project-php-executable) | ||
| 123 | (put 'php-project-php-executable 'safe-local-variable | 120 | (put 'php-project-php-executable 'safe-local-variable |
| 124 | #'(lambda (v) (and (stringp v) (file-executable-p v))))) | 121 | #'(lambda (v) (and (stringp v) (file-executable-p v))))) |
| 125 | 122 | ||
| 126 | ;;;###autoload | 123 | ;;;###autoload |
| 127 | (progn | 124 | (progn |
| 128 | (defvar php-project-phan-executable nil | 125 | (defvar-local php-project-phan-executable nil |
| 129 | "Path to phan executable file.") | 126 | "Path to phan executable file.") |
| 130 | (make-variable-buffer-local 'php-project-phan-executable) | ||
| 131 | (put 'php-project-phan-executable 'safe-local-variable #'php-project--eval-bootstrap-scripts)) | 127 | (put 'php-project-phan-executable 'safe-local-variable #'php-project--eval-bootstrap-scripts)) |
| 132 | 128 | ||
| 133 | ;;;###autoload | 129 | ;;;###autoload |
| 134 | (progn | 130 | (progn |
| 135 | (defvar php-project-coding-style nil | 131 | (defvar-local php-project-coding-style nil |
| 136 | "Symbol value of the coding style of the project that PHP major mode refers to. | 132 | "Symbol value of the coding style of the project that PHP major mode refers to. |
| 137 | 133 | ||
| 138 | Typically it is `pear', `drupal', `wordpress', `symfony2' and `psr2'.") | 134 | Typically it is `pear', `drupal', `wordpress', `symfony2' and `psr2'.") |
| 139 | (make-variable-buffer-local 'php-project-coding-style) | ||
| 140 | (put 'php-project-coding-style 'safe-local-variable #'symbolp)) | 135 | (put 'php-project-coding-style 'safe-local-variable #'symbolp)) |
| 141 | 136 | ||
| 142 | 137 | ||
