|
34 | 34 |
|
35 | 35 | ;;; Commentary: |
36 | 36 |
|
37 | | -;; PHP Mode is a major mode for editing PHP source code. It's an |
38 | | -;; extension of C mode; thus it inherits all C mode's navigation |
39 | | -;; functionality. But it colors according to the PHP grammar and |
40 | | -;; indents according to the PEAR coding guidelines. It also includes |
41 | | -;; a couple handy IDE-type features such as documentation search and a |
42 | | -;; source and class browser. |
| 37 | +;; PHP Mode is a major mode for editing PHP script. It's an extension |
| 38 | +;; of CC mode; thus it inherits all C mode's navigation functionality. |
| 39 | +;; But it colors according to the PHP syntax and indents according to the |
| 40 | +;; PSR-2 coding guidelines. It also includes a couple handy IDE-type |
| 41 | +;; features such as documentation search and a 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 |
47 | | -;; your .emacs file: |
| 46 | +;; This mode is designed for PHP scripts consisting of a single <?php block. |
| 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: |
52 | | - |
53 | | -;; (add-hook 'php-mode-hook |
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 |
| 53 | +;; If you are using a package manager, you do not need (require 'php-mode) in |
| 54 | +;; your ~/.emacs.d/init.el. Read the README for installation instructions. |
| 55 | +;; https://github.com/emacs-php/php-mode |
63 | 56 |
|
64 | 57 | ;;; Code: |
65 | 58 |
|
|
0 commit comments